Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | public function setCommandLocked($commandLocked) |
||
44 | { |
||
45 | $this->commandLocked = $commandLocked; |
||
46 | |||
47 | if ($commandLocked) { |
||
48 | $this->lockedAt = new \DateTime(); |
||
49 | $this->lockedBy = php_uname('n'); |
||
50 | } else { |
||
51 | $this->lockedAt = null; |
||
52 | $this->lockedBy = ''; |
||
53 | } |
||
54 | |||
55 | return $this; |
||
56 | } |
||
57 | |||
93 |