| 1 | <?php |
||
| 6 | class PassengerSegmentInfo implements \JsonSerializable |
||
| 7 | { |
||
| 8 | |||
| 9 | use ValidatorTrait; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $segmentId; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $passengerId; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $seat; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $seatType; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | protected $productInfo = []; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * PassengerSegmentInfo constructor. |
||
| 38 | * |
||
| 39 | * @param string $segmentId |
||
| 40 | * @param string $passengerId |
||
| 41 | * @param string $seat |
||
| 42 | * @param string $seatType |
||
| 43 | */ |
||
| 44 | public function __construct(string $segmentId, string $passengerId, string $seat, string $seatType) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $title |
||
| 54 | * @param string $value |
||
| 55 | * @return \Kerox\Messenger\Model\Message\Attachment\Template\Airline\PassengerSegmentInfo |
||
| 56 | * @internal param array $productInfo |
||
| 57 | */ |
||
| 58 | public function addProductInfo(string $title, string $value): PassengerSegmentInfo |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return array |
||
| 71 | */ |
||
| 72 | public function jsonSerialize(): array |
||
| 84 | } |
||
| 85 |