1 | <?php |
||
31 | class AttributeDetails |
||
32 | { |
||
33 | const TYPE_AUTHORISATION_ONLY = "AO"; |
||
34 | const TYPE_FC_ELEMENT = "FC"; |
||
35 | const TYPE_FP_ELEMENT = "FP"; |
||
36 | const TYPE_PAY_ELEMENT = "PAY"; |
||
37 | |||
38 | |||
39 | const TYPE_BEST_FARE_CANDIDATE = "BFAREC"; |
||
40 | const TYPE_CIND = "CIND"; |
||
41 | const TYPE_GWT_DATA = "GWTD"; |
||
42 | const TYPE_GWT_REQUIRED = "GWTR"; |
||
43 | const TYPE_CC_HOLDER_NAME = "HOLDN"; |
||
44 | const TYPE_ONO_DATA = "ONOD"; |
||
45 | const TYPE_ONO_REQUIRED = "ONOR"; |
||
46 | |||
47 | /** |
||
48 | * Give tag for a pair tag, value |
||
49 | * |
||
50 | * self::TYPE_* |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | public $attributeType; |
||
55 | |||
56 | /** |
||
57 | * Free form description of an attribute |
||
58 | * |
||
59 | * @var string |
||
60 | */ |
||
61 | public $attributeDescription; |
||
62 | |||
63 | /** |
||
64 | * AttributeDetails constructor. |
||
65 | * |
||
66 | * @param string $attributeType self::TYPE_* |
||
67 | * @param string|null $attributeDescription |
||
68 | */ |
||
69 | 13 | public function __construct($attributeType, $attributeDescription = null) |
|
74 | } |
||
75 |