| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class PluginRefreshDispatcher extends AbstractShopwareDispatcher |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param TaskDefinitionInterface $taskDefinition |
||
| 14 | * @return bool |
||
| 15 | */ |
||
| 16 | public function canDispatchTaskDefinition(TaskDefinitionInterface $taskDefinition): bool |
||
| 17 | { |
||
| 18 | return $taskDefinition instanceof PluginRefreshDefinition; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param TaskDefinitionInterface $taskDefinition |
||
| 23 | * @return DispatchResultInterface |
||
| 24 | * @throws \Deployee\Plugins\Deploy\Exception\DispatcherException |
||
| 25 | */ |
||
| 26 | public function dispatch(TaskDefinitionInterface $taskDefinition): DispatchResultInterface |
||
| 32 | )); |
||
| 33 | } |
||
| 34 | } |