| Total Complexity | 7 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class Config |
||
| 13 | { |
||
| 14 | private $ansi = false; |
||
| 15 | private $delete = false; |
||
| 16 | |||
| 17 | public function __construct(array $options = array()) |
||
| 20 | } |
||
| 21 | |||
| 22 | private function init($options) |
||
| 23 | { |
||
| 24 | if (empty($options)) { |
||
| 25 | return; |
||
| 26 | } |
||
| 27 | |||
| 28 | foreach ($options as $key => $val) |
||
| 29 | { |
||
| 30 | if (!isset($this->{$key})) { |
||
| 31 | continue; |
||
| 32 | } |
||
| 33 | $this->{$key} = $val; |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param $get |
||
| 39 | * @return mixed |
||
| 40 | * @throws MissingParameterException |
||
| 41 | */ |
||
| 42 | public function __get($get) |
||
| 49 | } |
||
| 50 | } |
||
| 51 |