1 | <?php |
||
9 | class ShipperFiled implements NodeInterface |
||
10 | { |
||
11 | const SF_ITN = 'A'; // Requires the ITN |
||
12 | const SF_EXEMPTION_LEGEND = 'B'; // Requires the Exemption Legend |
||
13 | const SF_POST_DEPARTURE_FILING = 'C'; // Requires Post Departure Filing Citation |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $code; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $description; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | * Required if code=SF_ITN |
||
28 | */ |
||
29 | private $preDepartureITNNumber; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * Required if code=SF_EXEMPTION_LEGEND |
||
34 | */ |
||
35 | private $exemptionLegend; |
||
36 | |||
37 | /** |
||
38 | * @param null|object $attributes |
||
39 | */ |
||
40 | public function __construct($attributes = null) |
||
57 | |||
58 | /** |
||
59 | * @param null|DOMDocument $document |
||
60 | * |
||
61 | * @return DOMElement |
||
62 | */ |
||
63 | public function toNode(DOMDocument $document = null) |
||
93 | |||
94 | /** |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getCode() |
||
101 | |||
102 | /** |
||
103 | * @param string $code |
||
104 | * |
||
105 | * @return $this |
||
106 | */ |
||
107 | public function setCode($code) |
||
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | public function getDescription() |
||
121 | |||
122 | /** |
||
123 | * @return string $description |
||
124 | */ |
||
125 | public function setDescription($description) |
||
131 | |||
132 | /** |
||
133 | * @return string |
||
134 | */ |
||
135 | public function getPreDepartureITNNumber() |
||
139 | |||
140 | /** |
||
141 | * @param string $preDepartureITNNumber |
||
142 | * |
||
143 | * @return $this |
||
144 | */ |
||
145 | public function setPreDepartureITNNumber($preDepartureITNNumber) |
||
151 | |||
152 | /** |
||
153 | * @return string |
||
154 | */ |
||
155 | public function getExemptionLegend() |
||
159 | |||
160 | /** |
||
161 | * @return string $exemptionLegend |
||
162 | */ |
||
163 | public function setExemptionLegend($exemptionLegend) |
||
169 | } |
||
170 |