コード例 #1
0
ファイル: Direction.php プロジェクト: baleen/migrations
 /**
  * @inheritdoc
  */
 public function isSameValueAs(ValueObjectInterface $object)
 {
     if (!$object instanceof Direction) {
         return false;
     }
     return $this->isUp() == $object->isUp();
 }
コード例 #2
0
ファイル: DeltaId.php プロジェクト: baleen/migrations
 /**
  * @inheritdoc
  */
 public function isSameValueAs(ValueObjectInterface $id)
 {
     if (!$id instanceof DeltaId) {
         return false;
     }
     return $this->toString() === $id->toString();
 }