| 1 | <?php |
||
| 7 | class Environment |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @return bool True if OS is Windows. |
||
| 11 | */ |
||
| 12 | public static function isWindows() |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return bool True if OS is MacOSX. |
||
| 19 | */ |
||
| 20 | public static function isMacOS() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return bool True if OS is SunOS. |
||
| 27 | */ |
||
| 28 | public static function isSunOS() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return bool True if OS is Linux. |
||
| 35 | */ |
||
| 36 | public static function isLinux() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return bool True if processor is Arm. |
||
| 43 | */ |
||
| 44 | public static function isArm() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return bool True if processor is Armv7l. |
||
| 51 | */ |
||
| 52 | public static function isArmV7l() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return bool True if processor is Armv6l. |
||
| 59 | */ |
||
| 60 | public static function isArmV6l() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return int Returns 32 or 64 depending on supported architecture. |
||
| 67 | */ |
||
| 68 | public static function getArchitecture() |
||
| 72 | } |
||
| 73 |