1 | <?php |
||
50 | class TemplateEntity |
||
51 | { |
||
52 | /** |
||
53 | * @var string |
||
54 | */ |
||
55 | protected $id; |
||
56 | |||
57 | /** |
||
58 | * @var string |
||
59 | */ |
||
60 | protected $uuid; |
||
61 | |||
62 | /** |
||
63 | * If the example parameters should be updated the next time it's used. |
||
64 | * |
||
65 | * @var bool |
||
66 | */ |
||
67 | protected $updateParameters = false; |
||
68 | |||
69 | /** |
||
70 | * @var string |
||
71 | */ |
||
72 | protected $locale = null; |
||
73 | |||
74 | /** |
||
75 | * A set of example parameters |
||
76 | * |
||
77 | * @var array |
||
78 | */ |
||
79 | protected $parameters; |
||
80 | |||
81 | /** |
||
82 | * @var string|null |
||
83 | */ |
||
84 | protected $subject; |
||
85 | |||
86 | /** |
||
87 | * @var string|null |
||
88 | */ |
||
89 | protected $textBody; |
||
90 | |||
91 | /** |
||
92 | * @var string|null |
||
93 | */ |
||
94 | protected $htmlBody; |
||
95 | |||
96 | /** |
||
97 | * A description from the developers so the editors know what they are doing. |
||
98 | * |
||
99 | * @var string|null |
||
100 | */ |
||
101 | protected $description; |
||
102 | |||
103 | /** |
||
104 | * The last time the parameters where updated at |
||
105 | * |
||
106 | * @var \DateTime|null |
||
107 | */ |
||
108 | protected $parametersUpdatedAt; |
||
109 | |||
110 | /** |
||
111 | * @var DateTime|null |
||
112 | */ |
||
113 | protected $createdAt; |
||
114 | |||
115 | /** |
||
116 | * @var DateTime|null |
||
117 | */ |
||
118 | protected $updatedAt; |
||
119 | |||
120 | /** |
||
121 | * @param string $id |
||
122 | */ |
||
123 | 1 | public function setId($id) |
|
127 | |||
128 | /** |
||
129 | * @return string |
||
130 | */ |
||
131 | 1 | public function getId() |
|
135 | |||
136 | /** |
||
137 | * @return string |
||
138 | */ |
||
139 | 1 | public function getUuid() |
|
143 | |||
144 | /** |
||
145 | * @param string $uuid |
||
146 | */ |
||
147 | 1 | public function setUuid($uuid) |
|
151 | |||
152 | /** |
||
153 | * @param string $locale |
||
154 | */ |
||
155 | 1 | public function setLocale($locale) |
|
159 | |||
160 | /** |
||
161 | * @return string |
||
162 | */ |
||
163 | 1 | public function getLocale() |
|
167 | |||
168 | /** |
||
169 | * @param string $template |
||
170 | */ |
||
171 | 1 | public function setTextBody($template) |
|
175 | |||
176 | /** |
||
177 | * @return string |
||
178 | */ |
||
179 | 1 | public function getTextBody() |
|
183 | |||
184 | /** |
||
185 | * @param string $htmlBody |
||
186 | */ |
||
187 | 1 | public function setHtmlBody($htmlBody) |
|
191 | |||
192 | /** |
||
193 | * @return null|string |
||
194 | */ |
||
195 | 1 | public function getHtmlBody() |
|
199 | |||
200 | /** |
||
201 | * @param array $variables |
||
202 | */ |
||
203 | 1 | public function setParameters(array $variables) |
|
207 | |||
208 | /** |
||
209 | * @return array |
||
210 | */ |
||
211 | 1 | public function getParameters() |
|
215 | |||
216 | /** |
||
217 | * @param string $subject |
||
218 | */ |
||
219 | 1 | public function setSubject($subject) |
|
223 | |||
224 | /** |
||
225 | * @return string |
||
226 | */ |
||
227 | 1 | public function getSubject() |
|
231 | |||
232 | /** |
||
233 | * @param string $description |
||
234 | */ |
||
235 | 1 | public function setDescription($description) |
|
239 | |||
240 | /** |
||
241 | * @return string |
||
242 | */ |
||
243 | 1 | public function getDescription() |
|
247 | |||
248 | /** |
||
249 | * @param \DateTime|null $paramsUpdatedAt |
||
250 | */ |
||
251 | 1 | public function setParametersUpdatedAt(DateTime $paramsUpdatedAt = null) |
|
255 | |||
256 | /** |
||
257 | * @return \DateTime|null |
||
258 | */ |
||
259 | 1 | public function getParametersUpdatedAt() |
|
263 | |||
264 | /** |
||
265 | * @param boolean $updatedParams |
||
266 | */ |
||
267 | 1 | public function setUpdateParameters($updatedParams) |
|
271 | |||
272 | /** |
||
273 | * @return boolean |
||
274 | */ |
||
275 | 1 | public function getUpdateParameters() |
|
279 | |||
280 | /** |
||
281 | * @return DateTime|null |
||
282 | */ |
||
283 | 1 | public function getCreatedAt() |
|
287 | |||
288 | /** |
||
289 | * @param DateTime|null $createdAt |
||
290 | */ |
||
291 | 1 | public function setCreatedAt(DateTime $createdAt) |
|
295 | |||
296 | /** |
||
297 | * @return DateTime|null |
||
298 | */ |
||
299 | 1 | public function getUpdatedAt() |
|
303 | |||
304 | /** |
||
305 | * @param DateTime|null $updatedAt |
||
306 | */ |
||
307 | 1 | public function setUpdatedAt(DateTime $updatedAt) |
|
311 | } |
||
312 |