1 | <?php |
||
7 | class OS { |
||
8 | /** |
||
9 | * isWindows returns true if the current OS is Windows. |
||
10 | * |
||
11 | * @param string $phpOs Optional, defaults to the PHP_OS constant. |
||
12 | * |
||
13 | * @return bool |
||
14 | */ |
||
15 | public static function isWindows($phpOs = PHP_OS) { |
||
18 | |||
19 | /** |
||
20 | * hasBinary returns true if the binary is available in any of the PATHs. |
||
21 | * |
||
22 | * @param string $binaryName |
||
23 | * |
||
24 | * @return bool |
||
25 | */ |
||
26 | public static function hasBinary($binaryName) { |
||
47 | } |
||
48 |