Ejemplo n.º 1
0
 /**
  * Check if aggregate is identified by contract and identifier
  *
  * @param Contract   $contract
  * @param Identifier $identifier
  *
  * @return bool
  */
 public function isIdentifiedBy(Contract $contract, Identifier $identifier)
 {
     return $this->contract->equals($contract) && $this->identifier->equals($identifier);
 }