コード例 #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
ファイル: AbstractId.php プロジェクト: Rybbow/x-blog
 /**
  * @param EquatableInterface $other
  *
  * @return bool
  */
 public function equals(EquatableInterface $other)
 {
     return $other instanceof AbstractId && $this->value->equals($other->getUuid());
 }