Total Complexity | 5 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class KillCommand extends AbstractCommand |
||
20 | { |
||
21 | |||
22 | /** @var WorkflowInstance $workflowInstance */ |
||
23 | private $workflowInstance; |
||
24 | |||
25 | /** @var TaskInstance $taskInstance */ |
||
26 | private $taskInstance; |
||
27 | |||
28 | /** |
||
29 | * Kills a running task instance |
||
30 | * |
||
31 | * @param WorkflowInstance $workflowInstance The WorkflowInstance |
||
32 | */ |
||
33 | 1 | public function __construct(WorkflowInstance $workflowInstance, TaskInstance $taskInstance) |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | 1 | public function getGroup(): string |
|
43 | { |
||
44 | 1 | return 'instance'; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | 1 | public function getAction(): string |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * @inheritDoc |
||
57 | */ |
||
58 | 1 | public function getFilters(): array |
|
63 | ]; |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * @inheritDoc |
||
68 | */ |
||
69 | public function getResponseParser() |
||
74 |