| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Mac extends AbstractOs implements OsInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Checks whether the current OS is equal to the current class |
||
| 17 | * |
||
| 18 | * @return bool |
||
| 19 | */ |
||
| 20 | public function inUse() |
||
| 21 | { |
||
| 22 | return strtolower($this->getCurrentOsName()) === 'darwin'; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Counts CPU cores of the current system |
||
| 27 | * |
||
| 28 | * @return int |
||
| 29 | */ |
||
| 30 | public function getCoreCount() |
||
| 35 | } |
||
| 36 | } |
||
| 37 |