| @@ 35-43 (lines=9) @@ | ||
| 32 | /** |
|
| 33 | * {@inheritDoc} |
|
| 34 | */ |
|
| 35 | public function __call($method, $params) |
|
| 36 | { |
|
| 37 | $proxy = [$this->_JsData, $method]; |
|
| 38 | if (is_callable($proxy)) { |
|
| 39 | return call_user_func_array($proxy, $params); |
|
| 40 | } |
|
| 41 | ||
| 42 | throw new \RuntimeException("Method JsData::$method does not exist."); |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||
| @@ 134-142 (lines=9) @@ | ||
| 131 | * |
|
| 132 | * {@inheritDoc} |
|
| 133 | */ |
|
| 134 | public function __call($method, $params) |
|
| 135 | { |
|
| 136 | $proxy = [$this->_JsData, $method]; |
|
| 137 | if (is_callable($proxy)) { |
|
| 138 | return call_user_func_array($proxy, $params); |
|
| 139 | } |
|
| 140 | ||
| 141 | parent::__call($method, $params); |
|
| 142 | } |
|
| 143 | } |
|
| 144 | ||