src/Chiron/Routing/RouteResult.php
public function getAllowedMethods(): ?array
    {
        if ($this->isSuccess()) {
            return $this->route
                ? $this->route->getAllowedMethods()
                : [];
        }

        return $this->allowedMethods;
    }
public function getAllowedMethods(): ?array
    {
        if ($this->isSuccess()) {
            return $this->route
                ? $this->route->getAllowedMethods()
                : [];
        }

        return $this->allowedMethods;
    }
public function getAllowedMethods ( ) : ? array { if ( $ this -> isSuccess ( ) ) { return $ this -> route ? $ this -> route -> getAllowedMethods ( ) : [ ] ; } return $ this -> allowedMethods ; }
Retrieve the allowed methods for the route failure.

@return null|string[] HTTP methods allowed
Retrieve the allowed methods for the route failure .