コード例 #1
0
 /**
  * @param Contract $aggregateContract
  * @param Identifier $aggregateId
  * @return bool
  */
 public function isIdentifiedBy(Contract $aggregateContract, Identifier $aggregateId)
 {
     return $this->aggregateContract->equals($aggregateContract) && $this->aggregateId->equals($aggregateId);
 }
コード例 #2
0
 public function equals(EventEnvelope $other)
 {
     return $this->eventId->equals($other->eventId) && $this->eventContract->equals($other->eventContract) && $this->eventPayload == $other->eventPayload;
 }