/** * @param Contract $aggregateContract * @param Identifier $aggregateId * @return bool */ public function isIdentifiedBy(Contract $aggregateContract, Identifier $aggregateId) { return $this->aggregateContract->equals($aggregateContract) && $this->aggregateId->equals($aggregateId); }
public function equals(EventEnvelope $other) { return $this->eventId->equals($other->eventId) && $this->eventContract->equals($other->eventContract) && $this->eventPayload == $other->eventPayload; }