| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | interface PayloadContract extends Status |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Set the Payload status. |
||
| 9 | * |
||
| 10 | * @param int $status |
||
| 11 | */ |
||
| 12 | public function setStatus(int $status): PayloadContract; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Get the status of the payload. |
||
| 16 | */ |
||
| 17 | public function getStatus(): int; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Set the Payload messages. |
||
| 21 | * |
||
| 22 | * @param array $output |
||
|
|
|||
| 23 | */ |
||
| 24 | public function setMessages(array $messages): PayloadContract; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get messages array from the payload. |
||
| 28 | */ |
||
| 29 | public function getMessages(): array; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Set the Payload output. |
||
| 33 | * |
||
| 34 | * @param mixed $output |
||
| 35 | * @param string|null $wrapper |
||
| 36 | */ |
||
| 37 | public function setOutput($output, ? string $wrapper = null): PayloadContract; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get the Payload output. |
||
| 41 | */ |
||
| 42 | public function getOutput(): array; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get the raw Payload output. |
||
| 46 | * |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | public function getRawOutput(); |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Get the wrapped Payload output. |
||
| 53 | */ |
||
| 54 | public function getWrappedOutput(): array; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get the wrapper for the output. |
||
| 58 | */ |
||
| 59 | public function getOutputWrapper(): string; |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Get the wrapper for messages. |
||
| 63 | */ |
||
| 64 | public function getMessagesWrapper(): string; |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Return all of the components of the payload in array format. |
||
| 68 | */ |
||
| 69 | public function all(): array; |
||
| 70 | } |
||
| 71 |
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.