| Total Complexity | 6 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class CreateTubeCommand extends AbstractCommand implements \Pheanstalk\ResponseParser |
||
| 22 | { |
||
| 23 | |||
| 24 | /** @var Tube $tube */ |
||
| 25 | private $tube; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Puts a job on the queue. |
||
| 29 | * |
||
| 30 | * @param Workflow $workflow The workflow to create |
||
| 31 | */ |
||
| 32 | 1 | public function __construct(Tube $tube) |
|
| 33 | { |
||
| 34 | 1 | $this->tube = $tube; |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritDoc |
||
| 39 | */ |
||
| 40 | 1 | public function getGroup(): string |
|
| 41 | { |
||
| 42 | 1 | return 'queue'; |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritDoc |
||
| 47 | */ |
||
| 48 | 1 | public function getAction(): string |
|
| 49 | { |
||
| 50 | 1 | return 'create'; |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @inheritDoc |
||
| 55 | */ |
||
| 56 | 1 | public function getFilters(): array |
|
| 63 | ]; |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @inheritDoc |
||
| 68 | */ |
||
| 69 | 1 | public function getResponseParser() |
|
| 70 | { |
||
| 71 | 1 | return $this; |
|
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @inheritDoc |
||
| 76 | */ |
||
| 77 | 1 | public function parseResponse($responseLine, $responseData) |
|
| 81 | } |
||
| 82 | } |
||
| 83 |