コード例 #1
0
 /**
  * @param mixed $other
  * @return bool
  */
 public function equals($other)
 {
     return $other instanceof static && $this->uuid->equals($other->uuid);
 }
コード例 #2
0
ファイル: TaskListId.php プロジェクト: prooph/processing
 /**
  * @param TaskListId $taskListId
  * @return bool
  */
 public function equals(TaskListId $taskListId)
 {
     return $this->nodeName()->equals($taskListId->nodeName()) && $this->processId()->equals($taskListId->processId()) && $this->uuid->equals($taskListId->uuid);
 }
コード例 #3
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());
 }
コード例 #4
0
ファイル: CommandTest.php プロジェクト: MattKetmo/common
 /**
  * @test
  */
 public function it_has_a_uuid()
 {
     $this->assertTrue($this->uuid->equals($this->command->uuid()));
 }
コード例 #5
0
ファイル: StatementId.php プロジェクト: php-xapi/model
 public function equals(StatementId $id)
 {
     return $this->uuid->equals($id->uuid);
 }
コード例 #6
0
ファイル: DomainEventTest.php プロジェクト: prolic/common
 /**
  * @test
  */
 function it_has_a_uuid()
 {
     $this->assertTrue($this->uuid->equals($this->domainEvent->uuid()));
 }
コード例 #7
0
ファイル: ProcessId.php プロジェクト: prooph/processing
 /**
  * @param ProcessId $processId
  * @return bool
  */
 public function equals(ProcessId $processId)
 {
     return $this->uuid->equals($processId->uuid);
 }