| @@ 43-48 (lines=6) @@ | ||
| 40 | $options |
|
| 41 | ); |
|
| 42 | ||
| 43 | foreach ($options as $key => $val) { |
|
| 44 | $method = "set$key"; |
|
| 45 | if (method_exists($this, $method)) { |
|
| 46 | $this->$method($val); |
|
| 47 | } |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | /** {@inheritdoc} */ |
|
| @@ 39-44 (lines=6) @@ | ||
| 36 | ); |
|
| 37 | } |
|
| 38 | ||
| 39 | foreach ($options as $key => $value) { |
|
| 40 | $method = "set$key"; |
|
| 41 | if (method_exists($this, $method)) { |
|
| 42 | $this->$method($value); |
|
| 43 | } |
|
| 44 | } |
|
| 45 | return $this; |
|
| 46 | } |
|
| 47 | ||