| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class CancelCommand extends AbstractCommand |
||
| 19 | { |
||
| 20 | |||
| 21 | /** @var WorkflowInstance $workflowInstance */ |
||
| 22 | private $workflowInstance; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Cancel a running workflow instance |
||
| 26 | * |
||
| 27 | * @param WorkflowInstance $workflowInstance The WorkflowInstance |
||
| 28 | */ |
||
| 29 | 1 | public function __construct(WorkflowInstance $workflowInstance) |
|
| 30 | { |
||
| 31 | 1 | $this->workflowInstance = $workflowInstance; |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritDoc |
||
| 36 | */ |
||
| 37 | 1 | public function getGroup(): string |
|
| 38 | { |
||
| 39 | 1 | return 'instance'; |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritDoc |
||
| 44 | */ |
||
| 45 | 1 | public function getAction(): string |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @inheritDoc |
||
| 52 | */ |
||
| 53 | 1 | public function getFilters(): array |
|
| 57 | ]; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @inheritDoc |
||
| 62 | */ |
||
| 63 | 1 | public function getResponseParser() |
|
| 66 | } |
||
| 67 | } |
||
| 68 |