| 1 | <?php |
||
| 4 | class Airport implements \JsonSerializable |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $airportCode; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $city; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $terminal; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $gate; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Airport constructor. |
||
| 29 | * |
||
| 30 | * @param string $airportCode |
||
| 31 | * @param string $city |
||
| 32 | */ |
||
| 33 | public function __construct(string $airportCode, string $city) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $terminal |
||
| 41 | * @return Airport |
||
| 42 | */ |
||
| 43 | public function setTerminal(string $terminal): Airport |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $gate |
||
| 52 | * @return Airport |
||
| 53 | */ |
||
| 54 | public function setGate(string $gate): Airport |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return array |
||
| 63 | */ |
||
| 64 | public function jsonSerialize(): array |
||
| 75 | } |