1 | <?php declare(strict_types = 1); |
||
13 | final class StrongConsistencyCommandBus implements CommandBus |
||
14 | { |
||
15 | /** @var SimpleCommandBus */ |
||
16 | private $commandBus; |
||
17 | |||
18 | /** @var string */ |
||
19 | private $lastCommandId; |
||
20 | |||
21 | /** |
||
22 | * NotificationsCommandBus constructor. |
||
23 | * @param SimpleCommandBus $commandBus |
||
24 | */ |
||
25 | public function __construct(SimpleCommandBus $commandBus) |
||
29 | |||
30 | /** |
||
31 | * @param Command $command |
||
32 | * @return void |
||
33 | */ |
||
34 | public function execute(Command $command) |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getLastCommandId() |
||
47 | } |
||
48 |