1 | <?php |
||
13 | class PackageServiceOptions implements NodeInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var COD |
||
17 | */ |
||
18 | private $cod; |
||
19 | |||
20 | /** |
||
21 | * @var InsuredValue |
||
22 | */ |
||
23 | private $insuredValue; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $earliestDeliveryTime; |
||
29 | |||
30 | /** |
||
31 | * @var HazMat[] |
||
32 | */ |
||
33 | private $hazMat = []; |
||
34 | |||
35 | /** |
||
36 | * @var HazMatPackageInformation |
||
37 | */ |
||
38 | private $hazMatPackageInformation; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | private $holdForPickup; |
||
44 | |||
45 | /** |
||
46 | * @var DeliveryConfirmation |
||
47 | */ |
||
48 | private $deliveryConfirmation; |
||
49 | |||
50 | /** |
||
51 | * @param null $parameters |
||
52 | */ |
||
53 | 2 | public function __construct($parameters = null) |
|
73 | |||
74 | /** |
||
75 | * @param null|DOMDocument $document |
||
76 | * |
||
77 | * @TODO: this seem to be awfully incomplete |
||
78 | * |
||
79 | * @return DOMElement |
||
80 | */ |
||
81 | 2 | public function toNode(DOMDocument $document = null) |
|
104 | |||
105 | /** |
||
106 | * @return InsuredValue|null |
||
107 | */ |
||
108 | 2 | public function getInsuredValue() |
|
112 | |||
113 | /** |
||
114 | * @param $var |
||
115 | */ |
||
116 | public function setInsuredValue($var) |
||
120 | |||
121 | /** |
||
122 | * @return COD|null |
||
123 | */ |
||
124 | public function getCOD() |
||
128 | |||
129 | /** |
||
130 | * @param $var |
||
131 | */ |
||
132 | public function setCOD($var) |
||
136 | |||
137 | /** |
||
138 | * @return string|null |
||
139 | */ |
||
140 | public function getEarliestDeliveryTime() |
||
144 | |||
145 | /** |
||
146 | * @param $var |
||
147 | */ |
||
148 | public function setEarliestDeliveryTime($var) |
||
152 | |||
153 | /** |
||
154 | * @return HazMat[] |
||
155 | */ |
||
156 | 2 | public function getHazMat() |
|
160 | |||
161 | /** |
||
162 | * @param HazMat[] $hazMat |
||
163 | */ |
||
164 | public function setHazMat(array $hazMat) |
||
168 | |||
169 | /** |
||
170 | * @param HazMat $hazmat |
||
171 | */ |
||
172 | public function addHazMat(HazMat $hazmat) |
||
176 | |||
177 | /** |
||
178 | * @return string|null |
||
179 | */ |
||
180 | public function getHoldForPickup() |
||
184 | |||
185 | /** |
||
186 | * @param $var |
||
187 | */ |
||
188 | public function setHoldForPickup($var) |
||
192 | |||
193 | /** |
||
194 | * @return HazMatPackageInformation |
||
195 | */ |
||
196 | 2 | public function getHazMatPackageInformation() |
|
200 | |||
201 | /** |
||
202 | * @param HazMatPackageInformation $hazMatPackageInformation |
||
203 | */ |
||
204 | public function setHazMatPackageInformation($hazMatPackageInformation) |
||
208 | |||
209 | /** |
||
210 | * @param DeliveryConfirmation $deliveryConfirmation |
||
211 | * @return ShipmentServiceOptions |
||
212 | */ |
||
213 | public function setDeliveryConfirmation(DeliveryConfirmation $deliveryConfirmation) |
||
218 | |||
219 | /** |
||
220 | * @return DeliveryConfirmation|null |
||
221 | */ |
||
222 | public function getDeliveryConfirmation() |
||
226 | } |
||
227 |