| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 25 | protected function getProcess($style, LoggerInterface $logger) |
|
| 48 | { |
||
| 49 | switch ($style) { |
||
| 50 | 25 | case self::LINUX_STYLE: |
|
| 51 | 25 | $process = new Linux\LinuxProcess($logger); |
|
| 52 | 25 | break; |
|
| 53 | 1 | default: |
|
| 54 | 1 | $msg = "System style '" . (string) $style . "' is not supported"; |
|
| 55 | 1 | throw new UnsupportedSystemException($msg); |
|
| 56 | 1 | } |
|
| 57 | 25 | return $process; |
|
| 58 | } |
||
| 59 | |||
| 85 |