1 | <?php namespace SimpleUPS\Rates; |
||
9 | class ShippingMethod extends \SimpleUPS\Model |
||
10 | { |
||
11 | private |
||
12 | /* @var \SimpleUPS\Service $service */ |
||
13 | $service, |
||
14 | /* @var integer|null $guaranteedDaysToDelivery */ |
||
15 | $guaranteedDaysToDelivery, |
||
16 | |||
17 | /* @var float $transportationCharges */ |
||
18 | $transportationCharges, |
||
19 | /* @var float $serviceOptionsCharges */ |
||
20 | $serviceOptionsCharges, |
||
21 | |||
22 | /* @var float $totalCharges */ |
||
23 | $totalCharges, |
||
24 | /* @var DateTime|null $scheduledDeliveryTime */ |
||
25 | $scheduledDeliveryTime, |
||
26 | |||
27 | /* @var string[]|null $warnings */ |
||
28 | $warnings; |
||
29 | |||
30 | /** |
||
31 | * @internal |
||
32 | * |
||
33 | * @param integer $guaranteedDaysToDelivery |
||
34 | * |
||
35 | * @return ShippingMethod |
||
36 | */ |
||
37 | public function setGuaranteedDaysToDelivery($guaranteedDaysToDelivery) |
||
42 | |||
43 | /** |
||
44 | * @return integer |
||
45 | */ |
||
46 | public function getGuaranteedDaysToDelivery() |
||
50 | |||
51 | /** |
||
52 | * @internal |
||
53 | * |
||
54 | * @param \DateTime $scheduledDeliveryTime |
||
55 | * |
||
56 | * @return ShippingMethod |
||
57 | */ |
||
58 | public function setScheduledDeliveryTime(\DateTime $scheduledDeliveryTime) |
||
63 | |||
64 | /** |
||
65 | * @return \DateTime |
||
66 | */ |
||
67 | public function getScheduledDeliveryTime() |
||
71 | |||
72 | /** |
||
73 | * @internal |
||
74 | * |
||
75 | * @param \SimpleUPS\Service $service |
||
76 | * |
||
77 | * @return ShippingMethod |
||
78 | */ |
||
79 | public function setService(\SimpleUPS\Service $service) |
||
84 | |||
85 | /** |
||
86 | * @return \SimpleUPS\Service |
||
87 | */ |
||
88 | public function getService() |
||
92 | |||
93 | /** |
||
94 | * @internal |
||
95 | * |
||
96 | * @param float $serviceOptionsCharges |
||
97 | * |
||
98 | * @return ShippingMethod |
||
99 | */ |
||
100 | public function setServiceOptionsCharges($serviceOptionsCharges) |
||
105 | |||
106 | /** |
||
107 | * @return float |
||
108 | */ |
||
109 | public function getServiceOptionsCharges() |
||
113 | |||
114 | /** |
||
115 | * @internal |
||
116 | * |
||
117 | * @param float $transportationCharges |
||
118 | * |
||
119 | * @return ShippingMethod |
||
120 | */ |
||
121 | public function setTransportationCharges($transportationCharges) |
||
126 | |||
127 | /** |
||
128 | * @return float |
||
129 | */ |
||
130 | public function getTransportationCharges() |
||
134 | |||
135 | /** |
||
136 | * @internal |
||
137 | * |
||
138 | * @param float $totalCharges |
||
139 | * |
||
140 | * @return ShippingMethod |
||
141 | */ |
||
142 | public function setTotalCharges($totalCharges) |
||
147 | |||
148 | /** |
||
149 | * @return float |
||
150 | */ |
||
151 | public function getTotalCharges() |
||
155 | |||
156 | /** |
||
157 | * @internal |
||
158 | * |
||
159 | * @param string $totalCharges |
||
|
|||
160 | * |
||
161 | * @return ShippingMethod |
||
162 | */ |
||
163 | public function addWarning($warning) |
||
172 | |||
173 | /** |
||
174 | * Determine if UPS provided any warnings for this shipment |
||
175 | * @see ShippingMethod::getWarnings() |
||
176 | * @return bool |
||
177 | */ |
||
178 | public function hasWarnings() |
||
182 | |||
183 | /** |
||
184 | * Get warnings associated with this shipping method |
||
185 | * @see ShippingMethod::hasWarnings() |
||
186 | * @return string[] |
||
187 | */ |
||
188 | public function getWarnings() |
||
192 | |||
193 | /** |
||
194 | * @internal |
||
195 | * |
||
196 | * @param \SimpleXMLElement $xml |
||
197 | * |
||
198 | * @return ShippingMethod |
||
199 | */ |
||
200 | public static function fromXml(\SimpleXMLElement $xml) |
||
228 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.