src/main/php/routing/CalledUri.php
public function satisfies(string $method = null, string $expectedPath = null): bool
    {
        return $this->methodEquals($method) && $this->satisfiesPath($expectedPath);
    }
public function satisfies(string $method = null, string $expectedPath = null): bool
    {
        return $this->methodEquals($method) && $this->satisfiesPath($expectedPath);
    }
public function satisfies ( string $ method = null , string $ expectedPath = null ) : bool { return $ this -> methodEquals ( $ method ) && $ this -> satisfiesPath ( $ expectedPath ) ; }
checks if given method and path is satisfied by request

@param   string  $method
@param   string  $expectedPath
@return  bool
@since   3.4.0
checks if given method and path is satisfied by request