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

        if (preg_match('/^' . UriPath::pattern($expectedPath) . '/', $this->uri->path()) >= 1) {
            return true;
        }

        return false;
    }
public function satisfiesPath(string $expectedPath = null): bool
    {
        if (empty($expectedPath)) {
            return true;
        }

        if (preg_match('/^' . UriPath::pattern($expectedPath) . '/', $this->uri->path()) >= 1) {
            return true;
        }

        return false;
    }
public function satisfiesPath ( string $ expectedPath = null ) : bool { if ( empty ( $ expectedPath ) ) { return true ; } if ( preg_match ( '/^' . UriPath :: pattern ( $ expectedPath ) . '/' , $ this -> uri -> path ( ) ) >= 1 ) { return true ; } return false ; }
checks if given path is satisfied by request path

@param   string  $expectedPath
@return  bool
checks if given path is satisfied by request path