| 1 | <?php |
||
| 5 | class Configuration |
||
| 6 | { |
||
| 7 | protected $config; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @param array $config |
||
| 11 | */ |
||
| 12 | 87 | public function __construct(array $config = array()) |
|
| 16 | |||
| 17 | /** |
||
| 18 | * @param array $config |
||
| 19 | */ |
||
| 20 | public function replace(array $config = array()) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $key |
||
| 27 | * @param mixed $value |
||
| 28 | */ |
||
| 29 | 6 | public function setOption($key, $value) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param string|null $key |
||
| 36 | * @param mixed|null $default |
||
| 37 | * |
||
| 38 | * @return mixed|null |
||
| 39 | */ |
||
| 40 | 81 | public function getOption($key = null, $default = null) |
|
| 52 | } |
||
| 53 |