| Total Complexity | 6 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class PutCommand extends AbstractCommand implements \Pheanstalk\ResponseParser |
||
| 21 | { |
||
| 22 | |||
| 23 | /** @var Workflow $workflow */ |
||
| 24 | private $workflow; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Puts a workflow in queue. |
||
| 28 | * |
||
| 29 | * @param Workflow $workflow The Workflow |
||
| 30 | */ |
||
| 31 | 2 | public function __construct(Workflow $workflow) |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritDoc |
||
| 38 | */ |
||
| 39 | 2 | public function getGroup(): string |
|
| 40 | { |
||
| 41 | 2 | return 'instance'; |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritDoc |
||
| 46 | */ |
||
| 47 | 2 | public function getAction(): string |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @inheritDoc |
||
| 54 | */ |
||
| 55 | 2 | public function getFilters(): array |
|
| 59 | ]; |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @inheritDoc |
||
| 64 | */ |
||
| 65 | 2 | public function getResponseParser() |
|
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @inheritDoc |
||
| 72 | */ |
||
| 73 | 2 | public function parseResponse($responseLine, $responseData) |
|
| 76 | } |
||
| 77 | } |
||
| 78 |