| 1 | <?php |
||
| 19 | class EmailByKey extends AbstractEmailByKey implements \Serializable |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * The email key |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | public $key; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * The recipients |
||
| 30 | * |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | protected $recipients = []; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * The email params |
||
| 37 | * |
||
| 38 | * @var array |
||
| 39 | */ |
||
| 40 | protected $params; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | public function getKey(): string |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @inheritdoc |
||
| 52 | */ |
||
| 53 | public function getRecipients(): array |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param array $recipients |
||
| 60 | * @return $this |
||
| 61 | */ |
||
| 62 | public function setRecipients(array $recipients) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param $recipient |
||
| 72 | * @return $this |
||
| 73 | */ |
||
| 74 | public function addRecipient($recipient) |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @inheritdoc |
||
| 86 | */ |
||
| 87 | public function getParams(): array |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @param $params |
||
| 94 | * @return $this |
||
| 95 | */ |
||
| 96 | public function setParams($params) |
||
| 101 | |||
| 102 | /** |
||
| 103 | * @inheritdoc |
||
| 104 | */ |
||
| 105 | public function serialize() |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @inheritdoc |
||
| 116 | */ |
||
| 117 | public function unserialize($serialized) |
||
| 124 | } |
||
| 125 |