| @@ 166-173 (lines=8) @@ | ||
| 163 | * |
|
| 164 | * @return mixed |
|
| 165 | */ |
|
| 166 | public function __set($key, $value) |
|
| 167 | { |
|
| 168 | $setter = 'set' . $this->classify($key); |
|
| 169 | if (method_exists($this, $setter)) { |
|
| 170 | return call_user_func_array(array($this, $setter), array($value)); |
|
| 171 | } |
|
| 172 | $this->set($key, $value); |
|
| 173 | } |
|
| 174 | ||
| 175 | /** |
|
| 176 | * Converts a string into a CamelCase word. |
|
| @@ 181-188 (lines=8) @@ | ||
| 178 | * |
|
| 179 | * @return mixed |
|
| 180 | */ |
|
| 181 | public function __set($key, $value) |
|
| 182 | { |
|
| 183 | $setter = 'set' . $this->classify($key); |
|
| 184 | if (method_exists($this, $setter)) { |
|
| 185 | return call_user_func_array(array($this, $setter), array($value)); |
|
| 186 | } |
|
| 187 | $this->set($key, $value); |
|
| 188 | } |
|
| 189 | ||
| 190 | /** |
|
| 191 | * Converts a string into a CamelCase word. |
|