|
@@ -18,8 +18,8 @@ |
|
|
block discarded – undo |
|
18
|
18
|
public function __construct(array $options = []) |
|
19
|
19
|
{ |
|
20
|
20
|
foreach ($options as $key => $option) { |
|
21
|
|
- $methodName = 'set'.$this->getCamelCase($key); |
|
22
|
|
- if(!method_exists($this, $methodName)) { |
|
|
21
|
+ $methodName = 'set' . $this->getCamelCase($key); |
|
|
22
|
+ if (!method_exists($this, $methodName)) { |
|
23
|
23
|
throw new \InvalidArgumentException($key . ' is not a known option - there is no method ' . $methodName); |
|
24
|
24
|
} |
|
25
|
25
|
$this->$methodName($option); |
Please login to merge, or discard this patch.