| 1 | <?php |
||
| 9 | class System implements SystemInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Darwin pattern |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private static $darwin = '/^dar/i'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Windows |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private static $windows = '/^win/i'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | * |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | public function isMac() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | * |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function isWindows() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | * |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | public function isLinux() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | * |
||
| 61 | * @return bool |
||
| 62 | */ |
||
| 63 | public function is64Bit() |
||
| 67 | } |
||
| 68 |