src/Chiron/Routing/RouteResult.php
public static function fromRouteFailure(?array $methods): self
    {
        $result = new self();
        $result->success = false;
        $result->allowedMethods = $methods;

        return $result;
    }
public static function fromRouteFailure(?array $methods): self
    {
        $result = new self();
        $result->success = false;
        $result->allowedMethods = $methods;

        return $result;
    }
public static function fromRouteFailure ( ? array $ methods ) : self { $ result = new self ( ) ; $ result -> success = false ; $ result -> allowedMethods = $ methods ; return $ result ; }
Create an instance representing a route failure.

@param null|array $methods HTTP methods allowed for the current URI, if any.
null is equivalent to allowing any HTTP method; empty array means none.
Create an instance representing a route failure .