| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 44 | public function add($name, $value) |
|
| 33 | { |
||
| 34 | 44 | $setting = $this->getPath($name); |
|
| 35 | 44 | $key = $this->getClassName($name); |
|
| 36 | |||
| 37 | // If the current key doesn't exist in the settings array, set it up |
||
| 38 | 44 | if (!array_key_exists($name, $this->settings)) { |
|
| 39 | 44 | $this->settings[$key] = new $setting(); |
|
| 40 | 44 | } |
|
| 41 | |||
| 42 | 44 | $this->settings[$key]->add($value); |
|
| 43 | 44 | } |
|
| 44 | |||
| 85 |