src/main/php/routing/CalledUri.php
public function methodEquals(string $method = null): bool
    {
        if (empty($method)) {
            return true;
        }

        return $this->method === $method;
    }
public function methodEquals(string $method = null): bool
    {
        if (empty($method)) {
            return true;
        }

        return $this->method === $method;
    }
public function methodEquals ( string $ method = null ) : bool { if ( empty ( $ method ) ) { return true ; } return $ this -> method === $ method ; }
checks if request method equals given method

@param   string  $method
@return  bool
checks if request method equals given method