public function __call($method, $params)
{
$methods = static::instanceMethods();
if (isset($methods[$method]) && is_callable($methods[$method])) {
return call_user_func_array($methods[$method], $params);
}
$message = "Unhandled method call `{$method}`.";
throw new BadMethodCallException($message);
}