public function __call($method, $parameters) { if (isset($this->macros[$method])) { return call_user_func_array($this->macros[$method], $parameters); } throw new \Exception("Method [{$method}] does not exist."); }