| 1 | <?php |
||
| 6 | class FlightSchedule implements \JsonSerializable |
||
| 7 | { |
||
| 8 | |||
| 9 | use ValidatorTrait; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var null|string |
||
| 13 | */ |
||
| 14 | protected $boardingTime; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $departureTime; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var null|string |
||
| 23 | */ |
||
| 24 | protected $arrivalTime; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * FlightSchedule constructor. |
||
| 28 | * |
||
| 29 | * @param string $departureTime |
||
| 30 | */ |
||
| 31 | public function __construct(string $departureTime) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $boardingTime |
||
| 39 | * @return FlightSchedule |
||
| 40 | */ |
||
| 41 | public function setBoardingTime(string $boardingTime): FlightSchedule |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $arrivalTime |
||
| 51 | * @return FlightSchedule |
||
| 52 | */ |
||
| 53 | public function setArrivalTime(string $arrivalTime): FlightSchedule |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return array |
||
| 63 | */ |
||
| 64 | public function jsonSerialize(): array |
||
| 74 | } |
||
| 75 |