module/FzyCommon/src/FzyCommon/Util/Params.php
public function get($key = null, $default = null)
    {
        if ($key === null) {
            return $this->params;
        }

        return $this->has($key) ? $this->params[$key] : $default;
    }
public function get($key = null, $default = null)
    {
        if ($key === null) {
            return $this->params;
        }

        return $this->has($key) ? $this->params[$key] : $default;
    }
If $key is not specified, will return entire param array
If $key is specified, will check the parameter array for key $key and
return the value if it exists, otherwise $default
@param  null       $key
@param  null       $default
@return array|null