| Conditions | 4 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function setOptions(array $options) |
||
| 33 | {
|
||
| 34 | if (count($options)) {
|
||
| 35 | foreach ($options as $method => $value) {
|
||
| 36 | $method = camelcase('set_' . $method);
|
||
|
|
|||
| 37 | |||
| 38 | if (method_exists($this, $method)) {
|
||
| 39 | call_user_func_array([&$this, $method], [$value]); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | return $this; |
||
| 45 | } |
||
| 46 | } |