public function getQueryParameters(): array
    {
        $url = $this->getUrl();
        if (false === ($index = strpos($url, '?'))) {
            return [];
        }

        parse_str(substr($url, $index + 1), $queryParams);

        return $queryParams;
    }
public function getQueryParameters(): array
    {
        $url = $this->getUrl();
        if (false === ($index = strpos($url, '?'))) {
            return [];
        }

        parse_str(substr($url, $index + 1), $queryParams);

        return $queryParams;
    }
public function getQueryParameters ( ) : array { $ url = $ this -> getUrl ( ) ; if ( false === ( $ index = strpos ( $ url , '?' ) ) ) { return [ ] ; } parse_str ( substr ( $ url , $ index + 1 ) , $ queryParams ) ; return $ queryParams ; }
Returns the list of query parameters.

This is equivalent to PHP's $_GET superglobal.
Returns the list of query parameters .