| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | interface PayloadContract extends Status |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Set the Payload status. |
||
| 9 | * |
||
| 10 | * @param string $status |
||
| 11 | * |
||
| 12 | * @return $this |
||
| 13 | */ |
||
| 14 | public function setStatus($status); |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Get the status of the payload. |
||
| 18 | * |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | public function getStatus(); |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Set the Payload output. |
||
| 25 | * |
||
| 26 | * @param mixed $output |
||
| 27 | * @param string|null $wrapper |
||
| 28 | * |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | public function setOutput($output, ? string $wrapper = null); |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get the Payload output. |
||
| 35 | * |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public function getOutput(); |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the unwrapped Payload output. |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function getUnwrappedOutput(); |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Set the Payload messages. |
||
| 49 | * |
||
| 50 | * @param array $output |
||
|
|
|||
| 51 | * |
||
| 52 | * @return $this |
||
| 53 | */ |
||
| 54 | public function setMessages(array $messages); |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get messages array from the payload. |
||
| 58 | * |
||
| 59 | * @return array |
||
| 60 | */ |
||
| 61 | public function getMessages(); |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Get the wrapper for the output. |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getOutputWrapper(); |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Get the wrapper for messages. |
||
| 72 | * |
||
| 73 | * @return string |
||
| 74 | */ |
||
| 75 | public function getMessagesWrapper(); |
||
| 76 | } |
||
| 77 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.