public function groupBy($groupBy)
{
if (!$this->validateParamater($groupBy)) {
return $this;
} elseif (is_array($groupBy)) {
$this->groupBy = array_merge($this->groupBy, $groupBy);
} elseif (func_num_args() > 1) {
$this->groupBy = array_merge($this->groupBy, func_get_args());
} else {
$this->groupBy[] = $groupBy;
}
return $this;
}