Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
18 | public function handle($command, bool $fromQueue = false) |
||
19 | { |
||
20 | if ($fromQueue) { |
||
21 | $hash = $this->getHash($command); |
||
22 | $this->fromQueueCommands[$hash] = true; |
||
23 | } |
||
24 | $this->baseCommandBus->handle($command, $fromQueue); |
||
25 | if (isset($hash)) { |
||
26 | unset($this->fromQueueCommands[$hash]); |
||
27 | } |
||
28 | } |
||
29 | |||
41 |