list airports api

This commit is contained in:
Richard Morgan
2017-05-14 11:16:35 -04:00
parent c76351ae5b
commit 37d345840b
10 changed files with 409 additions and 100 deletions

View 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);
}
}