public function __call($method, $arguments) { if (method_exists($this->router, $method)) { $this->routes[$method][] = $arguments; } }