| 1 | <?php namespace Indatus\Dispatcher; |
||
| 13 | class Platform |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | const UNIX = 0; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var int |
||
| 22 | */ |
||
| 23 | const WINDOWS = 1; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Determine if the current OS is Windows |
||
| 27 | * @return bool |
||
| 28 | */ |
||
| 29 | public function isWindows() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Determine if the current OS is Unix |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function isUnix() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return integer |
||
| 45 | */ |
||
| 46 | private function getPlatform() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Determine if we're running in HHVM |
||
| 57 | * |
||
| 58 | * @return bool |
||
| 59 | */ |
||
| 60 | public function isHHVM() |
||
| 64 | } |
||
| 65 |