Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
EmailRecipient.php
1 <?php
2 /**
3  * Gentics Portal.Node PHP
4  * Author & Copyright (c) by Gentics Software GmbH
5  * sales@gentics.com
6  * http://www.gentics.com
7  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8  * You must not use this software without a valid license agreement.
9  *
10  * This class represents email recipient for Notificator
11  */
13 {
14  /**
15  * @var string recipient email
16  */
17  public $to;
18 
19  /**
20  * @var string sender email
21  */
22  public $from;
23 
24  /**
25  * @var string name which will used in mail header
26  */
27  public $name;
28 
29  /**
30  * @var bool if skip validation rules in MailNotificator
31  */
32  public $skipValidation;
33 
34  /**
35  * Constructor
36  *
37  * @param string $to email of recipient
38  * @param string $from email of sender
39  * @param string $name name of recipient
40  * @param bool $skipValidation defines if validation should be skipped
41  *
42  * @return \EmailRecipient
43  */
44  public function __construct($to, $from = '', $name = '', $skipValidation = false)
45  {
46  $this->to = $to;
47  $this->from = $from;
48  $this->name = $name;
49  $this->skipValidation = $skipValidation;
50  }
51 
52 }