public function getParams()
    {
        if (empty($this->params)) {
            return '';
        }

        $params = array_map(function ($key, $value) {
            return "$key=$value";
        }, array_keys($this->params), $this->params);

        return '?'.implode('&', $params);
    }