Exemplo n.º 1
0
 public function __construct($type, $email, $name = null)
 {
     if (in_array($type, array('to', 'cc', 'bcc')) === false) {
         throw new InvalidArgumentException('EMA-002: This is not a valid Recipient type. [' . $type . ']');
     }
     $this->type = $type;
     parent::__construct($email, $name);
 }