Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | abstract class AbstractCommandHandler implements CommandHandler |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | * |
||
24 | * @throws InvalidQueryException |
||
25 | */ |
||
26 | final public function handle(Command $command): void |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Get supported command type. |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | abstract protected function getSupportedCommandType(): string; |
||
46 | |||
47 | /** |
||
48 | * Handle command. |
||
49 | * |
||
50 | * @param Command $command |
||
51 | */ |
||
52 | abstract protected function handleCommand(Command $command): void; |
||
53 | } |
||
54 |