1 | <?php |
||
12 | class TransactionalCommandBus extends CommandBus implements Transactional |
||
13 | { |
||
14 | /** |
||
15 | * @var CommandBus |
||
16 | */ |
||
17 | private $commandBus; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | private $commandsToCommit; |
||
23 | |||
24 | /** |
||
25 | * @var boolean |
||
26 | */ |
||
27 | private $transactionRunning; |
||
28 | |||
29 | /** |
||
30 | * TransactionalCommandBus constructor. |
||
31 | * |
||
32 | * @param CommandBus $commandBus |
||
33 | */ |
||
34 | 27 | public function __construct(CommandBus $commandBus) |
|
42 | |||
43 | /** |
||
44 | * @inheritDoc |
||
45 | */ |
||
46 | 15 | public function handle($command) |
|
58 | |||
59 | /** |
||
60 | * @inheritDoc |
||
61 | */ |
||
62 | 15 | public function beginTransaction() |
|
70 | |||
71 | /** |
||
72 | * @inheritDoc |
||
73 | */ |
||
74 | 9 | public function commit() |
|
88 | |||
89 | /** |
||
90 | * @inheritDoc |
||
91 | */ |
||
92 | 6 | public function rollback() |
|
98 | |||
99 | /** |
||
100 | * @return bool |
||
101 | */ |
||
102 | 24 | private function isTransactionRunning() |
|
106 | |||
107 | /** |
||
108 | * @throws NoRunningTransactionException |
||
109 | */ |
||
110 | 18 | private function checkTransactionIsRunning() |
|
116 | |||
117 | 15 | private function set() |
|
122 | |||
123 | 27 | private function reset() |
|
128 | } |
||
129 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..