@@ 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 |
@@ 306-313 (lines=8) @@ | ||
303 | * @param $parameters |
|
304 | * @return mixed|null |
|
305 | */ |
|
306 | public function __call($method, $parameters) |
|
307 | { |
|
308 | if ($this->hasHook($hook = snake_case($method))) { |
|
309 | return $this->call($hook, $parameters); |
|
310 | } |
|
311 | ||
312 | return null; |
|
313 | } |
|
314 | } |
|
315 |