| 1 | <?php namespace Mascame\Artificer\Options; |
||
| 5 | class Option |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var |
||
| 10 | */ |
||
| 11 | public $options; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | public static $config_path = ''; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var null |
||
| 20 | */ |
||
| 21 | public static $subkey = null; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $key |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | public static function get($key = '') |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $key |
||
| 34 | * @return bool |
||
| 35 | */ |
||
| 36 | public static function has($key = '') |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param null $key |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | public static function all($key = null) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param $key |
||
| 52 | * @param $value |
||
| 53 | */ |
||
| 54 | public static function set($key, $value) |
||
| 58 | } |