| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class ChooseMechanic |
||
| 6 | { |
||
| 7 | const MECHANICS = [ |
||
| 8 | 'DAR' => MacOs::class, |
||
| 9 | 'WIN' => Windows::class, |
||
| 10 | 'LINUX' => Linux::class, |
||
| 11 | ]; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Get the mechanic for the host operating system. |
||
| 15 | * |
||
| 16 | * @param string|null $os |
||
| 17 | * |
||
| 18 | * @return Mechanic |
||
| 19 | */ |
||
| 20 | public static function forOS($os = null) |
||
| 33 |