list airports api
This commit is contained in:
21
app/Libraries/IotaCodes/Airport.php
Normal file
21
app/Libraries/IotaCodes/Airport.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace App\Libraries\IotaCodes;
|
||||
|
||||
class Airport
|
||||
{
|
||||
|
||||
public $name;
|
||||
|
||||
public $code;
|
||||
|
||||
protected function __construct($name, $code)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->code = $code;
|
||||
}
|
||||
|
||||
public static function create($name, $code)
|
||||
{
|
||||
return new self($name, $code);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user