/** * {@inheritdoc} */ public function addGroupBy(FieldDescriptorInterface $fieldDescriptor) { $this->groupByFields[$fieldDescriptor->getName()] = $fieldDescriptor; }
/** * {@inheritdoc} */ public function compare(FieldDescriptorInterface $other) { if (!$other instanceof self) { return false; } return $this->getName() === $other->getName() && $this->getType() === $other->getType(); }