示例#1
0
文件: Text.php 项目: Rybbow/x-blog
 /**
  * @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());
 }