/**
  * @return EmailAddress
  */
 public function emailAddress()
 {
     if (is_null($this->emailAddress)) {
         $this->emailAddress = EmailAddress::fromString($this->payload['email']);
     }
     return $this->emailAddress;
 }
示例#2
0
 /**
  * @return EmailAddress
  */
 public function emailAddress()
 {
     return EmailAddress::fromString($this->payload['email']);
 }
示例#3
0
 /**
  * @param EmailAddress $other
  * @return bool
  */
 public function sameValueAs(EmailAddress $other)
 {
     return $this->toString() === $other->toString();
 }