| 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 | 329 | public static function setRuntimeFlag($status) |
|
| 35 | |||
| 36 | public static function removeRuntimeFlag($status) |
||
| 37 | { |
||
| 38 | self::$runTimeStatus &= ~$status; |
||
| 39 | } |
||
| 40 | |||
| 41 | 329 | public static function resetRuntimeFlags() |
|
| 42 | { |
||
| 43 | 329 | self::$runTimeStatus = 0; |
|
| 44 | 329 | } |
|
| 45 | |||
| 46 | 183 | public static function getWorkingDirectory() |
|
| 55 | |||
| 56 | 329 | public static function setWorkingDirectory($directory) |
|
| 57 | { |
||
| 60 | } |
||
| 61 |
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
@returnannotation as described here.