1 | <?php |
||
12 | trait SendGrid |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | private $sg_params = []; |
||
18 | |||
19 | /** |
||
20 | * @return array |
||
21 | */ |
||
22 | public function getSgParams() |
||
26 | |||
27 | /** |
||
28 | * @param array $sg_params |
||
29 | */ |
||
30 | public function setSgParams($sg_params) |
||
34 | |||
35 | /** |
||
36 | * @param null|array $params |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function sendgrid($params = null) |
||
49 | |||
50 | /** |
||
51 | * @param array $personalizations |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function setPersonalizations($personalizations) |
||
59 | |||
60 | /** |
||
61 | * @param Personalize $personalize |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function addPersonalizations(Personalize $personalize) |
||
69 | |||
70 | /** |
||
71 | * @param array $attachments |
||
72 | * @return $this |
||
73 | */ |
||
74 | public function setAttachments($attachments) |
||
79 | |||
80 | /** |
||
81 | * @param Attachment $attachment |
||
82 | * @return $this |
||
83 | */ |
||
84 | public function addAttachments(Attachment $attachment) |
||
89 | |||
90 | /** |
||
91 | * @param string $id |
||
92 | * @return $this |
||
93 | */ |
||
94 | public function setTemplateId($id) |
||
99 | |||
100 | /** |
||
101 | * @param array $section |
||
102 | * @return $this |
||
103 | */ |
||
104 | public function setSection($section) |
||
109 | |||
110 | /** |
||
111 | * @param array $headers |
||
112 | * @return $this |
||
113 | */ |
||
114 | public function setHeaders($headers) |
||
119 | |||
120 | /** |
||
121 | * @param array $categories |
||
122 | * @return $this |
||
123 | */ |
||
124 | public function setCategories($categories) |
||
129 | |||
130 | /** |
||
131 | * @param string $category |
||
132 | * @return $this |
||
133 | */ |
||
134 | public function addCategories($category) |
||
139 | |||
140 | /** |
||
141 | * @param array $custom_args |
||
142 | * @return $this |
||
143 | */ |
||
144 | public function setCustomArgs($custom_args) |
||
149 | |||
150 | /** |
||
151 | * @param string $key |
||
152 | * @param string $val |
||
153 | * @return $this |
||
154 | */ |
||
155 | public function addCustomArgs($key, $val) |
||
160 | |||
161 | /** |
||
162 | * @param int $send_at |
||
163 | * @return $this |
||
164 | */ |
||
165 | public function setSendAt($send_at) |
||
170 | |||
171 | /** |
||
172 | * @param string $batch_id |
||
173 | * @return $this |
||
174 | */ |
||
175 | public function setBatchId($batch_id) |
||
180 | |||
181 | /** |
||
182 | * @param Asm $asm |
||
183 | * @return $this |
||
184 | */ |
||
185 | public function setAsm(Asm $asm) |
||
190 | |||
191 | /** |
||
192 | * @param string $ip_pool_name |
||
193 | * @return $this |
||
194 | */ |
||
195 | public function setIpPoolName($ip_pool_name) |
||
200 | |||
201 | |||
202 | /** |
||
203 | * @param MailSettings $mailSetting |
||
204 | * @return $this |
||
205 | */ |
||
206 | public function setMailSettings(MailSettings $mailSetting) |
||
211 | |||
212 | /** |
||
213 | * @param TrackingSettings $trackingSettings |
||
214 | * @return $this |
||
215 | */ |
||
216 | public function setTrackingSettings(TrackingSettings $trackingSettings) |
||
221 | } |