| 1 | <?php |
||
| 16 | class System implements SystemInterface |
||
| 17 | { |
||
| 18 | |||
| 19 | const ERROR = 'System "%s" is not supported yet. Patches welcome :)'; |
||
| 20 | |||
| 21 | const RUNTIME_CLASS = '\Uptime\Runtime\\%s\\%s'; |
||
| 22 | |||
| 23 | protected $system; |
||
| 24 | |||
| 25 | public function __construct($system = PHP_OS) |
||
| 32 | |||
| 33 | public function getSystem() |
||
| 37 | |||
| 38 | public function getBoottime() |
||
| 42 | |||
| 43 | public function getUptime() |
||
| 47 | |||
| 48 | private function getTime($value_object) |
||
| 56 | |||
| 57 | public static function createFromContext() |
||
| 61 | } |
||
| 62 |