Пример #1
0
 /**
  * @param Text $other
  *
  * @return bool
  */
 public function equals(EquatableInterface $other)
 {
     return $other instanceof Text && $this->text === $other->getText();
 }
Пример #2
0
 /**
  * @param EquatableInterface $other
  *
  * @return bool
  */
 public function equals(EquatableInterface $other)
 {
     return $other instanceof AbstractId && $this->value->equals($other->getUuid());
 }