@@ 115-122 (lines=8) @@ | ||
112 | * @param string $method |
|
113 | * @param array $parameters |
|
114 | */ |
|
115 | public function __call($method, $parameters) |
|
116 | { |
|
117 | if ($this->hasHook($hook = snake_case($method))) { |
|
118 | return $this->call($hook, $parameters); |
|
119 | } |
|
120 | ||
121 | return $this->get($method); |
|
122 | } |
|
123 | } |
|
124 |
@@ 320-327 (lines=8) @@ | ||
317 | * @param $parameters |
|
318 | * @return mixed|null |
|
319 | */ |
|
320 | public function __call($method, $parameters) |
|
321 | { |
|
322 | if ($this->hasHook($hook = snake_case($method))) { |
|
323 | return $this->call($hook, $parameters); |
|
324 | } |
|
325 | ||
326 | return null; |
|
327 | } |
|
328 | } |
|
329 |