| @@ 94-106 (lines=13) @@ | ||
| 91 | * @param mixed $parameters |
|
| 92 | * @return mixed |
|
| 93 | */ |
|
| 94 | public function __call($method, $parameters) |
|
| 95 | { |
|
| 96 | $method = camelize($method); |
|
| 97 | $result = $this; |
|
| 98 | ||
| 99 | if (method_exists($this, $method)) { |
|
| 100 | $class = [$this, $method]; |
|
| 101 | ||
| 102 | $result = call_user_func_array($class, $parameters); |
|
| 103 | } |
|
| 104 | ||
| 105 | return $result; |
|
| 106 | } |
|
| 107 | } |
|
| 108 | ||
| @@ 89-101 (lines=13) @@ | ||
| 86 | * @param mixed $parameters |
|
| 87 | * @return mixed |
|
| 88 | */ |
|
| 89 | public function __call($method, $parameters) |
|
| 90 | { |
|
| 91 | $method = camelize($method); |
|
| 92 | $result = $this; |
|
| 93 | ||
| 94 | if (method_exists($this, $method)) { |
|
| 95 | $class = [$this, $method]; |
|
| 96 | ||
| 97 | $result = call_user_func_array($class, $parameters); |
|
| 98 | } |
|
| 99 | ||
| 100 | return $result; |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||