1
|
|
|
<?php |
2
|
|
|
declare(strict_types=1); |
3
|
|
|
|
4
|
|
|
namespace Yproximite\Api\Message\Site; |
5
|
|
|
|
6
|
|
|
use Yproximite\Api\Model\Site\Site; |
7
|
|
|
use Yproximite\Api\Message\MessageInterface; |
8
|
|
|
|
9
|
|
|
/** |
10
|
|
|
* Class AbstractSiteMessage |
11
|
|
|
*/ |
12
|
|
|
abstract class AbstractSiteMessage implements MessageInterface |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* @var string |
16
|
|
|
*/ |
17
|
|
|
private $title; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @var int |
21
|
|
|
*/ |
22
|
|
|
private $dataParentId; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var int |
26
|
|
|
*/ |
27
|
|
|
private $themeId; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var string|null |
31
|
|
|
*/ |
32
|
|
|
private $contactEmail; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var string|null |
36
|
|
|
*/ |
37
|
|
|
private $host; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string|null |
41
|
|
|
*/ |
42
|
|
|
private $defaultLocale; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var int |
46
|
|
|
*/ |
47
|
|
|
private $companyId; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var bool|null |
51
|
|
|
*/ |
52
|
|
|
private $sendRegistrationEmail; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var string|null |
56
|
|
|
*/ |
57
|
|
|
private $zohoManager; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var string|null |
61
|
|
|
*/ |
62
|
|
|
private $zohoStatus; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var string|null |
66
|
|
|
*/ |
67
|
|
|
private $billingStatus; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var string|null |
71
|
|
|
*/ |
72
|
|
|
private $importRef; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @return string |
76
|
|
|
*/ |
77
|
|
|
public function getTitle(): string |
78
|
|
|
{ |
79
|
|
|
return $this->title; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @param string $title |
84
|
|
|
*/ |
85
|
|
|
public function setTitle(string $title) |
86
|
|
|
{ |
87
|
|
|
$this->title = $title; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @return int |
92
|
|
|
*/ |
93
|
|
|
public function getDataParentId(): int |
94
|
|
|
{ |
95
|
|
|
return $this->dataParentId; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @param int $dataParentId |
100
|
|
|
*/ |
101
|
|
|
public function setDataParentId(int $dataParentId) |
102
|
|
|
{ |
103
|
|
|
$this->dataParentId = $dataParentId; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @return int |
108
|
|
|
*/ |
109
|
|
|
public function getThemeId(): int |
110
|
|
|
{ |
111
|
|
|
return $this->themeId; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @param int $themeId |
116
|
|
|
*/ |
117
|
|
|
public function setThemeId(int $themeId) |
118
|
|
|
{ |
119
|
|
|
$this->themeId = $themeId; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* @return null|string |
124
|
|
|
*/ |
125
|
|
|
public function getContactEmail() |
126
|
|
|
{ |
127
|
|
|
return $this->contactEmail; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @param null|string $contactEmail |
132
|
|
|
*/ |
133
|
|
|
public function setContactEmail(string $contactEmail = null) |
134
|
|
|
{ |
135
|
|
|
$this->contactEmail = $contactEmail; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @return null|string |
140
|
|
|
*/ |
141
|
|
|
public function getHost() |
142
|
|
|
{ |
143
|
|
|
return $this->host; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param null|string $host |
148
|
|
|
*/ |
149
|
|
|
public function setHost(string $host = null) |
150
|
|
|
{ |
151
|
|
|
$this->host = $host; |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
/** |
155
|
|
|
* @return null|string |
156
|
|
|
*/ |
157
|
|
|
public function getDefaultLocale() |
158
|
|
|
{ |
159
|
|
|
return $this->defaultLocale; |
160
|
|
|
} |
161
|
|
|
|
162
|
|
|
/** |
163
|
|
|
* @param null|string $defaultLocale |
164
|
|
|
*/ |
165
|
|
|
public function setDefaultLocale(string $defaultLocale = null) |
166
|
|
|
{ |
167
|
|
|
$this->defaultLocale = $defaultLocale; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* @return int |
172
|
|
|
*/ |
173
|
|
|
public function getCompanyId(): int |
174
|
|
|
{ |
175
|
|
|
return $this->companyId; |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* @param int $companyId |
180
|
|
|
*/ |
181
|
|
|
public function setCompanyId(int $companyId) |
182
|
|
|
{ |
183
|
|
|
$this->companyId = $companyId; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* @return bool|null |
188
|
|
|
*/ |
189
|
|
|
public function isSendRegistrationEmail() |
190
|
|
|
{ |
191
|
|
|
return $this->sendRegistrationEmail; |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
/** |
195
|
|
|
* @param bool|null $sendRegistrationEmail |
196
|
|
|
*/ |
197
|
|
|
public function setSendRegistrationEmail(bool $sendRegistrationEmail = null) |
198
|
|
|
{ |
199
|
|
|
$this->sendRegistrationEmail = $sendRegistrationEmail; |
200
|
|
|
} |
201
|
|
|
|
202
|
|
|
/** |
203
|
|
|
* @return null|string |
204
|
|
|
*/ |
205
|
|
|
public function getZohoManager() |
206
|
|
|
{ |
207
|
|
|
return $this->zohoManager; |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* @param null|string $zohoManager |
212
|
|
|
*/ |
213
|
|
|
public function setZohoManager(string $zohoManager = null) |
214
|
|
|
{ |
215
|
|
|
$this->zohoManager = $zohoManager; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* @return null|string |
220
|
|
|
*/ |
221
|
|
|
public function getZohoStatus() |
222
|
|
|
{ |
223
|
|
|
return $this->zohoStatus; |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
/** |
227
|
|
|
* @param null|string $zohoStatus |
228
|
|
|
*/ |
229
|
|
|
public function setZohoStatus(string $zohoStatus = null) |
230
|
|
|
{ |
231
|
|
|
$this->zohoStatus = $zohoStatus; |
232
|
|
|
} |
233
|
|
|
|
234
|
|
|
/** |
235
|
|
|
* @see Site::getBillingStatuses() |
236
|
|
|
* |
237
|
|
|
* @return null|string |
238
|
|
|
*/ |
239
|
|
|
public function getBillingStatus() |
240
|
|
|
{ |
241
|
|
|
return $this->billingStatus; |
242
|
|
|
} |
243
|
|
|
|
244
|
|
|
/** |
245
|
|
|
* @param null|string $billingStatus |
246
|
|
|
*/ |
247
|
|
|
public function setBillingStatus(string $billingStatus = null) |
248
|
|
|
{ |
249
|
|
|
$this->billingStatus = $billingStatus; |
250
|
|
|
} |
251
|
|
|
|
252
|
|
|
/** |
253
|
|
|
* @return null|string |
254
|
|
|
*/ |
255
|
|
|
public function getImportRef() |
256
|
|
|
{ |
257
|
|
|
return $this->importRef; |
258
|
|
|
} |
259
|
|
|
|
260
|
|
|
/** |
261
|
|
|
* @param null|string $importRef |
262
|
|
|
*/ |
263
|
|
|
public function setImportRef(string $importRef = null) |
264
|
|
|
{ |
265
|
|
|
$this->importRef = $importRef; |
266
|
|
|
} |
267
|
|
|
} |
268
|
|
|
|