| @@ 51-55 (lines=5) @@ | ||
| 48 | */ |
|
| 49 | public function setConfig(array $config) |
|
| 50 | { |
|
| 51 | foreach ($config as $key => $value) { |
|
| 52 | if (array_key_exists($key, $this->config)) { |
|
| 53 | $this->config[$key] = $value; |
|
| 54 | } |
|
| 55 | } |
|
| 56 | return $this; |
|
| 57 | } |
|
| 58 | ||
| @@ 123-127 (lines=5) @@ | ||
| 120 | $config = [$config => $value]; |
|
| 121 | } |
|
| 122 | ||
| 123 | foreach ($config as $key => $value) { |
|
| 124 | if (array_key_exists($key, $this->config)) { |
|
| 125 | $this->config[$key] = $value; |
|
| 126 | } |
|
| 127 | } |
|
| 128 | return $this; |
|
| 129 | } |
|
| 130 | ||