| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 14 |
| Ratio | 100 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 7 | public function getCommand() |
|
| 40 | { |
||
| 41 | 7 | if ($this->builder === null) { |
|
| 42 | 1 | throw new \InvalidArgumentException('Service manager not defined'); |
|
| 43 | } |
||
| 44 | |||
| 45 | 6 | $this->builder->start($this->service); |
|
| 46 | |||
| 47 | 6 | if (!$this->verbose) { |
|
| 48 | 5 | $this->builder->quiet(); |
|
| 49 | 5 | } |
|
| 50 | |||
| 51 | 6 | return $this->builder->getCommand(); |
|
| 52 | } |
||
| 53 | |||
| 67 |