src/DruidFamiliar/QueryParameters/GroupByQueryParameters.php
public function validate()
    {
        $flag = true;
        foreach($this->requiredParams as $param)
        {
            if(!isset($this->$param))
            {
                $this->missingParameters[] = $param;
                $flag                      = false;
            }
            else
            {
                $val = $this->$param;
                if(!is_array($val))
                {
                    $val = trim($val);
                }
                if(empty($val))
                {
                    $this->emptyParameters[] = $param;
                    $flag                    = false;
                }
            }
        }
        if(count($this->missingParameters) > 0)
        {
            throw new MissingParametersException($this->missingParameters);
        }
        if(count($this->emptyParameters) > 0)
        {
            throw new EmptyParametersException($this->emptyParameters);
        }
        return $flag;
    }
public function validate()
    {
        $flag = true;
        foreach($this->requiredParams as $param)
        {
            if(!isset($this->$param))
            {
                $this->missingParameters[] = $param;
                $flag                      = false;
            }
            else
            {
                $val = $this->$param;
                if(!is_array($val))
                {
                    $val = trim($val);
                }
                if(empty($val))
                {
                    $this->emptyParameters[] = $param;
                    $flag                    = false;
                }
            }
        }
        if(count($this->missingParameters) > 0)
        {
            throw new MissingParametersException($this->missingParameters);
        }
        if(count($this->emptyParameters) > 0)
        {
            throw new EmptyParametersException($this->emptyParameters);
        }
        return $flag;
    }
Validates the query has the necessary parameters

@throws MissingParametersException