setField($field); } /** * Set the field for this aggregation. * * @param string $field the name of the document field on which to perform this aggregation * * @return $this */ public function setField(string $field): self { return $this->setParam('field', $field); } }