| Total Complexity | 1 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | class PassengerReference |
||
| 32 | { |
||
| 33 | const TYPE_INFANT = "INF"; |
||
| 34 | const TYPE_ADULT = "PAX"; |
||
| 35 | |||
| 36 | const TYPE_STAKEHOLDER_PAYER = "SHP"; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * self::TYPE_* |
||
| 40 | * |
||
| 41 | * @var string |
||
| 42 | */ |
||
| 43 | public $type; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var string|int |
||
| 47 | */ |
||
| 48 | public $value; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * PassengerReference constructor. |
||
| 52 | * |
||
| 53 | * @param string $type self::TYPE_* |
||
| 54 | * @param int|string $value |
||
| 55 | */ |
||
| 56 | 15 | public function __construct($type, $value) |
|
| 62 |