Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function execute(Command $command) |
||
43 | { |
||
44 | if ($this->locked === true) { |
||
45 | $this->queue[] = $command; |
||
46 | return null; |
||
47 | } |
||
48 | |||
49 | $this->locked = true; |
||
50 | |||
51 | $response = $this->executeIgnoringLock($command); |
||
52 | |||
53 | $this->executeQueue(); |
||
54 | |||
55 | $this->locked = false; |
||
56 | |||
57 | return $response; |
||
58 | } |
||
59 | |||
81 |