1 | <?php |
||
21 | abstract class CompositeCommandHandler extends CommandHandler |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @type CommandBusInterface $command_bus |
||
26 | */ |
||
27 | private $command_bus; |
||
28 | |||
29 | /** |
||
30 | * @type CommandFactoryInterface $command_factory |
||
31 | */ |
||
32 | private $command_factory; |
||
33 | |||
34 | |||
35 | |||
36 | /** |
||
37 | * CompositeCommandHandler constructor. |
||
38 | * |
||
39 | * @param CommandBusInterface $command_bus |
||
40 | * @param CommandFactoryInterface $command_factory |
||
41 | */ |
||
42 | public function __construct(CommandBusInterface $command_bus, CommandFactoryInterface $command_factory) |
||
47 | |||
48 | |||
49 | |||
50 | /** |
||
51 | * @param CommandBusInterface $command_bus |
||
52 | */ |
||
53 | public function setCommandBus(CommandBusInterface $command_bus) |
||
57 | |||
58 | |||
59 | |||
60 | /** |
||
61 | * @return CommandBusInterface |
||
62 | */ |
||
63 | public function commandBus() |
||
67 | |||
68 | |||
69 | |||
70 | /** |
||
71 | * @return CommandFactoryInterface |
||
72 | */ |
||
73 | public function commandFactory() |
||
77 | |||
78 | |||
79 | |||
80 | } |
||
81 | // End of file CompositeCommandHandler.php |
||
82 | // Location: core/services/commands/CompositeCommandHandler.php |