| Total Complexity | 6 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class DeleteTubeCommand extends AbstractCommand implements \Pheanstalk\ResponseParser |
||
| 18 | { |
||
| 19 | /** @var Tube $tube */ |
||
| 20 | private $tube; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param Tube $tube |
||
| 24 | */ |
||
| 25 | 1 | public function __construct(Tube $tube) |
|
| 26 | { |
||
| 27 | 1 | $this->tube = $tube; |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritDoc |
||
| 32 | */ |
||
| 33 | 1 | public function getGroup(): string |
|
| 34 | { |
||
| 35 | 1 | return 'queue'; |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @inheritDoc |
||
| 40 | */ |
||
| 41 | 1 | public function getAction(): string |
|
| 42 | { |
||
| 43 | 1 | return 'delete'; |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @inheritDoc |
||
| 48 | */ |
||
| 49 | 1 | public function getFilters(): array |
|
| 53 | ]; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @inheritDoc |
||
| 58 | */ |
||
| 59 | 1 | public function getResponseParser() |
|
| 60 | { |
||
| 61 | 1 | return $this; |
|
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @inheritDoc |
||
| 66 | * @return bool |
||
| 67 | */ |
||
| 68 | 1 | public function parseResponse($responseLine, $responseData) |
|
| 71 | } |
||
| 72 | } |
||
| 73 |