@@ -29,6 +29,9 @@ |
||
29 | 29 | return $this->amount; |
30 | 30 | } |
31 | 31 | |
32 | + /** |
|
33 | + * @param double $amount |
|
34 | + */ |
|
32 | 35 | public function setAmount($amount) |
33 | 36 | { |
34 | 37 | $this->amount = $this->sanitizeAmount($amount); |
@@ -186,6 +186,7 @@ discard block |
||
186 | 186 | * be overridden by payloads that need it. |
187 | 187 | * |
188 | 188 | * @param string |
189 | + * @param string $serializedPayload |
|
189 | 190 | * @return self |
190 | 191 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
191 | 192 | */ |
@@ -280,6 +281,9 @@ discard block |
||
280 | 281 | return $this->parentPayload; |
281 | 282 | } |
282 | 283 | |
284 | + /** |
|
285 | + * @param string $type |
|
286 | + */ |
|
283 | 287 | protected function getAncestorPayloadOfType($type) |
284 | 288 | { |
285 | 289 | $pl = $this; |
@@ -321,7 +325,7 @@ discard block |
||
321 | 325 | /** |
322 | 326 | * Name, value pairs of root attributes |
323 | 327 | * |
324 | - * @return array |
|
328 | + * @return callable |
|
325 | 329 | */ |
326 | 330 | protected function getRootAttributes() |
327 | 331 | { |
@@ -355,6 +359,7 @@ discard block |
||
355 | 359 | * |
356 | 360 | * @param string |
357 | 361 | * @param mixed |
362 | + * @param string $attributeName |
|
358 | 363 | * @return string |
359 | 364 | */ |
360 | 365 | protected function serializeOptionalAttribute($attributeName, $value) |
@@ -368,6 +373,7 @@ discard block |
||
368 | 373 | * |
369 | 374 | * @param string |
370 | 375 | * @param float |
376 | + * @param string $nodeName |
|
371 | 377 | * @return string |
372 | 378 | */ |
373 | 379 | protected function serializeOptionalAmount($nodeName, $amount) |
@@ -384,6 +390,8 @@ discard block |
||
384 | 390 | * @param string |
385 | 391 | * @param string |
386 | 392 | * @param DateTime |
393 | + * @param string $nodeName |
|
394 | + * @param string $format |
|
387 | 395 | * @return string |
388 | 396 | */ |
389 | 397 | protected function serializeOptionalDateValue($nodeName, $format, DateTime $date = null) |
@@ -420,6 +428,7 @@ discard block |
||
420 | 428 | * |
421 | 429 | * @param string |
422 | 430 | * @param string |
431 | + * @param string $name |
|
423 | 432 | * @return string |
424 | 433 | */ |
425 | 434 | protected function serializeOptionalXmlEncodedValue($name, $value) |
@@ -170,6 +170,7 @@ discard block |
||
170 | 170 | * @param string a descriptive name for the reference, included in any exception messages |
171 | 171 | * @param ArrayAccess collection of payloads the reference should resolve to |
172 | 172 | * @param IPayload|null the referenced payload |
173 | + * @param string $referenceName |
|
173 | 174 | * @throws InvalidPayload If the referenced payload does not exists or is not included in the collection. |
174 | 175 | */ |
175 | 176 | protected function validatePayloadReference( |
@@ -204,6 +205,7 @@ discard block |
||
204 | 205 | * @param string a descriptive name for the reference, included in any exception messages |
205 | 206 | * @param ArrayAccess collection of payloads the reference should resolve to |
206 | 207 | * @param IPayload|null the referenced payload |
208 | + * @param string $referenceName |
|
207 | 209 | * @return self |
208 | 210 | * @throws InvalidPayload If the referenced payload exists but is not included in the collection. |
209 | 211 | */ |