示例#1
0
 public function testTypeGetterAndSetter()
 {
     $entity = new EmailRecipient();
     $entity->setType('test');
     $this->assertEquals('test', $entity->getType());
 }
 /**
  * Create EmailRecipient entity object
  *
  * @param string $type The recipient type. Can be to, cc or bcc
  * @param string $email The email address, for example: john@example.com or "John Smith" <*****@*****.**>
  * @return EmailRecipient
  */
 protected function recipient($type, $email)
 {
     $result = new EmailRecipient();
     return $result->setType($type)->setName($email)->setEmailAddress($this->address($email));
 }