Total Complexity | 6 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class UpdateTubeCommand extends AbstractCommand implements \Pheanstalk\ResponseParser |
||
22 | { |
||
23 | |||
24 | /** @var Tube $tube */ |
||
25 | private $tube; |
||
26 | |||
27 | /** |
||
28 | * Updates an existing tube |
||
29 | * |
||
30 | * @param Workflow $workflow The workflow to create |
||
31 | */ |
||
32 | public function __construct(Tube $tube) |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | public function getGroup(): string |
||
41 | { |
||
42 | return 'queue'; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | */ |
||
48 | public function getAction(): string |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @inheritDoc |
||
55 | */ |
||
56 | public function getFilters(): array |
||
64 | ]; |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @inheritDoc |
||
69 | */ |
||
70 | public function getResponseParser() |
||
71 | { |
||
72 | return $this; |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * @inheritDoc |
||
77 | */ |
||
78 | public function parseResponse($responseLine, $responseData) |
||
81 | } |
||
82 | } |
||
83 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: