| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class PluginUninstallDispatcher extends AbstractTaskDefinitionDispatcher |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param TaskDefinitionInterface $taskDefinition |
||
| 15 | * @return bool |
||
| 16 | */ |
||
| 17 | public function canDispatchTaskDefinition(TaskDefinitionInterface $taskDefinition): bool |
||
| 18 | { |
||
| 19 | return $taskDefinition instanceof PluginUninstallDefinition; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param TaskDefinitionInterface $taskDefinition |
||
| 24 | * @return DispatchResultInterface |
||
| 25 | * @throws \Deployee\Plugins\Deploy\Exception\DispatcherException |
||
| 26 | */ |
||
| 27 | public function dispatch(TaskDefinitionInterface $taskDefinition): DispatchResultInterface |
||
| 37 | ) |
||
| 38 | ) |
||
| 41 | } |