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