src/Metable/Hooks.php 1 location
|
@@ 157-164 (lines=8) @@
|
154 |
|
}; |
155 |
|
} |
156 |
|
|
157 |
|
public function __call($method, $params) |
158 |
|
{ |
159 |
|
if (strpos($method, '__') === 0 && method_exists($this, $method.'Hook')) { |
160 |
|
return call_user_func_array([$this, $method.'Hook'], $params); |
161 |
|
} |
162 |
|
|
163 |
|
throw new BadMethodCallException("Method [{$method}] doesn't exist on this object."); |
164 |
|
} |
165 |
|
} |
166 |
|
|
src/Mappable/Hooks.php 1 location
|
@@ 147-154 (lines=8) @@
|
144 |
|
}; |
145 |
|
} |
146 |
|
|
147 |
|
public function __call($method, $params) |
148 |
|
{ |
149 |
|
if (strpos($method, '__') === 0 && method_exists($this, $method.'Hook')) { |
150 |
|
return call_user_func_array([$this, $method.'Hook'], $params); |
151 |
|
} |
152 |
|
|
153 |
|
throw new BadMethodCallException("Method [{$method}] doesn't exist on this object."); |
154 |
|
} |
155 |
|
} |
156 |
|
|