public function parseParams($allowedParams)
    {
        $this->allowedParams = $allowedParams;
        $this->setDefaultParams();

        foreach ($this->rawParams as $checkParam => $value) {
            if (! $paramOptions = $this->getParamOptions($checkParam)) {
                continue;
            }

            $param = $paramOptions['param'];
            $options = $paramOptions['options'];

            $paramValue = $this->getParamValue($param, $options, $value);
            if (isset($this->params[$param]) && is_array($this->params[$param])) {
                $this->params[$param] = array_merge($this->params[$param], $paramValue);
            } else {
                $this->params[$param] = $paramValue;
            }
        }
    }