/** * @param bool $distinct (optional) Distinct column * * @return $this */ public function max($distinct = false) { $value = $this->expression()->max($this->column, $distinct); return $this->having->init($value, $this->separator); }
/** * @param bool $distinct * @return Having */ public function max(bool $distinct = false) : Having { $value = (new Expression())->max($this->column, $distinct); return $this->having->init($value, $this->separator); }