1 | <?php |
||
40 | class Cabin |
||
41 | { |
||
42 | /** |
||
43 | * Search only in the original cabin (the one from the segment) |
||
44 | */ |
||
45 | const TYPE_DEFAULT = 'K'; |
||
46 | |||
47 | /** |
||
48 | * Search only in the cabin(s) provided as "first cabin". |
||
49 | */ |
||
50 | const TYPE_FIRST_CABIN = 'FC'; |
||
51 | |||
52 | /** |
||
53 | * Search first in the cabin(s) provided as "first cabin", then in the cabin(s) provided as "second cabin". |
||
54 | * |
||
55 | * Note: must be used together with the "first cabin". |
||
56 | */ |
||
57 | const TYPE_SECOND_CABIN = 'SC'; |
||
58 | |||
59 | /** |
||
60 | * Search first in the cabin(s) provided as "first cabin", then in the cabin(s) provided as "second cabin", |
||
61 | * and finally in the cabin(s) provided as "third cabin". |
||
62 | * |
||
63 | * Note: must be used together with the "first cabin" and "second cabin". |
||
64 | */ |
||
65 | const TYPE_THIRD_CABIN = 'TC'; |
||
66 | |||
67 | /** |
||
68 | * In case no fare is found in the cabin(s) provided with above option, defaults to any cabin. |
||
69 | */ |
||
70 | const TYPE_DEFAULT_CABIN = 'P'; |
||
71 | |||
72 | const CLASS_FIRST = 'F'; |
||
73 | const CLASS_BUSINESS = 'C'; |
||
74 | const CLASS_ECONOMY = 'Y'; |
||
75 | const CLASS_STANDARD_ECONOMY = 'M'; |
||
76 | const CLASS_PREMIUM_ECONOMY = 'W'; |
||
77 | |||
78 | /** |
||
79 | * @var array|CriteriaDetails[] |
||
80 | */ |
||
81 | public $criteriaDetails = []; |
||
82 | |||
83 | /** |
||
84 | * Cabin constructor. |
||
85 | * |
||
86 | * @param CriteriaDetails[]|array $criteriaDetails |
||
87 | */ |
||
88 | 4 | public function __construct($criteriaDetails) |
|
92 | } |
||
93 |