public function set404Route(callable $action): self
    {
        $this->uri = "404RouteNotFound";
        $this->method = self::METHOD_ANY;
        $this->action = $action;
        $this->is404 = true;

        return $this;
    }
public function set404Route(callable $action): self
    {
        $this->uri = "404RouteNotFound";
        $this->method = self::METHOD_ANY;
        $this->action = $action;
        $this->is404 = true;

        return $this;
    }
public function set404Route ( callable $ action ) : self { $ this -> uri = "404RouteNotFound" ; $ this -> method = self :: METHOD_ANY ; $ this -> action = $ action ; $ this -> is404 = true ; return $ this ; }
Set 404 Route

Sets the '404NoRouteFound' Route to its properties. This Route is used by
the Dispatcher if it can not find a matching Route for its Request.

@param callable $action Route action
@return self
Set 404 Route