| Total Complexity | 6 |
| Total Lines | 90 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Airport implements \JsonSerializable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $airportCode; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $city; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $terminal; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $gate; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Airport constructor. |
||
| 31 | * |
||
| 32 | * @param string $airportCode |
||
| 33 | 10 | * @param string $city |
|
| 34 | */ |
||
| 35 | 10 | public function __construct(string $airportCode, string $city) |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $airportCode |
||
| 43 | * @param string $city |
||
| 44 | 10 | * |
|
| 45 | * @return \Kerox\Messenger\Model\Message\Attachment\Template\Airline\Airport |
||
| 46 | 10 | */ |
|
| 47 | public static function create(string $airportCode, string $city): self |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $terminal |
||
| 54 | * |
||
| 55 | * @return Airport |
||
| 56 | 10 | */ |
|
| 57 | public function setTerminal(string $terminal): self |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param string $gate |
||
| 66 | 5 | * |
|
| 67 | * @return Airport |
||
| 68 | */ |
||
| 69 | 5 | public function setGate(string $gate): self |
|
| 74 | } |
||
| 75 | 5 | ||
| 76 | /** |
||
| 77 | * @return array |
||
| 78 | */ |
||
| 79 | public function toArray(): array |
||
| 89 | } |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @return array |
||
| 93 | */ |
||
| 94 | public function jsonSerialize(): array |
||
| 99 |