/** * @param Text $other * * @return bool */ public function equals(EquatableInterface $other) { return $other instanceof Text && $this->text === $other->getText(); }
/** * @param EquatableInterface $other * * @return bool */ public function equals(EquatableInterface $other) { return $other instanceof AbstractId && $this->value->equals($other->getUuid()); }