| Total Complexity | 6 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class UpdateCommand extends AbstractCommand implements \Pheanstalk\ResponseParser |
||
| 19 | { |
||
| 20 | /** @var Workflow $workflow */ |
||
| 21 | private $workflow; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param Workflow $workflow |
||
| 25 | */ |
||
| 26 | public function __construct(Workflow $workflow) |
||
| 27 | { |
||
| 28 | $this->workflow = $workflow; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritDoc |
||
| 33 | */ |
||
| 34 | public function getGroup(): string |
||
| 35 | { |
||
| 36 | return 'workflow'; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritDoc |
||
| 41 | */ |
||
| 42 | public function getAction(): string |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritDoc |
||
| 49 | */ |
||
| 50 | public function getFilters(): array |
||
| 58 | ]; |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @inheritDoc |
||
| 63 | */ |
||
| 64 | public function getResponseParser() |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @inheritDoc |
||
| 71 | */ |
||
| 72 | public function parseResponse($responseLine, $responseData) |
||
| 77 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: