Neos\Flow\Mvc\Routing\RoutePartInterface::match PHP Method

match() public method

This method does not only check if the Route Part matches. It can also shorten the $routePath by the matching substring when matching is successful. This is why $routePath has to be passed by reference.
public match ( &$routePath ) : boolean
return boolean TRUE if Route Part matched $routePath, otherwise FALSE.
    public function match(&$routePath);