1 | <?php |
||
10 | abstract class Service |
||
11 | { |
||
12 | protected static $workingDirectory; |
||
13 | protected static $runTimeStatus; |
||
14 | protected static $options; |
||
15 | |||
16 | 12 | public static function setOption($key, $value) |
|
17 | { |
||
18 | 12 | self::$options[$key] = $value; |
|
19 | 12 | } |
|
20 | |||
21 | public static function getOption($key) |
||
25 | |||
26 | 94 | public static function hasRunTimeFlag($status) |
|
30 | |||
31 | 318 | public static function setRuntimeFlag($status) |
|
35 | |||
36 | 318 | public static function resetRuntimeFlags() |
|
40 | |||
41 | 172 | public static function getWorkingDirectory() |
|
50 | |||
51 | 318 | public static function setWorkingDirectory($directory) |
|
55 | } |
||
56 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.