| @@ 197-209 (lines=13) @@ | ||
| 194 | * @param mixed $parameters |
|
| 195 | * @return mixed |
|
| 196 | */ |
|
| 197 | public function __call($method, $parameters) |
|
| 198 | { |
|
| 199 | $method = camelize($method); |
|
| 200 | $result = $this; |
|
| 201 | ||
| 202 | if (method_exists($this, $method)) { |
|
| 203 | $class = [$this, $method]; |
|
| 204 | ||
| 205 | $result = call_user_func_array($class, $parameters); |
|
| 206 | } |
|
| 207 | ||
| 208 | return $result; |
|
| 209 | } |
|
| 210 | } |
|
| 211 | ||
| @@ 127-139 (lines=13) @@ | ||
| 124 | * @param mixed $parameters |
|
| 125 | * @return mixed |
|
| 126 | */ |
|
| 127 | public function __call($method, $parameters) |
|
| 128 | { |
|
| 129 | $method = camelize($method); |
|
| 130 | $result = $this; |
|
| 131 | ||
| 132 | if (method_exists($this, $method)) { |
|
| 133 | $class = [$this, $method]; |
|
| 134 | ||
| 135 | $result = call_user_func_array($class, $parameters); |
|
| 136 | } |
|
| 137 | ||
| 138 | return $result; |
|
| 139 | } |
|
| 140 | } |
|
| 141 | ||