1 | <?php |
||
11 | class Site implements ModelInterface |
||
12 | { |
||
13 | const BILLING_STATUS_TEST = 'test'; |
||
14 | const BILLING_STATUS_TRIAL = 'trial'; |
||
15 | const BILLING_STATUS_FREE = 'free'; |
||
16 | const BILLING_STATUS_PARTNER = 'partner'; |
||
17 | const BILLING_STATUS_DIRECT = 'direct'; |
||
18 | const BILLING_STATUS_IN_DEVELOPMENT = 'in-development'; |
||
19 | const BILLING_STATUS_WAITING_SUBSCRIPTION = 'waiting-subscription'; |
||
20 | const BILLING_STATUS_ERROR = 'error'; |
||
21 | const BILLING_STATUS_CANCELED = 'canceled'; |
||
22 | |||
23 | const TYPE_ROOT = 'root'; |
||
24 | const TYPE_SITE = 'site'; |
||
25 | const TYPE_PLATFORM = 'platform'; |
||
26 | const TYPE_SUB_PLATFORM = 'sub-platform'; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | */ |
||
31 | private $id; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $title; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | private $host; |
||
42 | |||
43 | /** |
||
44 | * @var int|null |
||
45 | */ |
||
46 | private $companyId; |
||
47 | |||
48 | /** |
||
49 | * @var string|null |
||
50 | */ |
||
51 | private $contactEmail; |
||
52 | |||
53 | /** |
||
54 | * @var \DateTime |
||
55 | */ |
||
56 | private $createdAt; |
||
57 | |||
58 | /** |
||
59 | * @var \DateTime |
||
60 | */ |
||
61 | private $updatedAt; |
||
62 | |||
63 | /** |
||
64 | * @var int|null |
||
65 | */ |
||
66 | private $themeId; |
||
67 | |||
68 | /** |
||
69 | * @var string |
||
70 | */ |
||
71 | private $billingStatus; |
||
72 | |||
73 | /** |
||
74 | * @var string |
||
75 | */ |
||
76 | private $type; |
||
77 | |||
78 | /** |
||
79 | * @return string[] |
||
80 | */ |
||
81 | public static function getBillingStatuses(): array |
||
95 | |||
96 | /** |
||
97 | * @return string[] |
||
98 | */ |
||
99 | public static function getTypes(): array |
||
108 | |||
109 | /** |
||
110 | * Site constructor. |
||
111 | * |
||
112 | * @param array $data |
||
113 | */ |
||
114 | public function __construct(array $data) |
||
127 | |||
128 | /** |
||
129 | * @return int |
||
130 | */ |
||
131 | public function getId(): int |
||
135 | |||
136 | /** |
||
137 | * @return string |
||
138 | */ |
||
139 | public function getTitle(): string |
||
143 | |||
144 | /** |
||
145 | * @return string |
||
146 | */ |
||
147 | public function getHost(): string |
||
151 | |||
152 | /** |
||
153 | * @return int|null |
||
154 | */ |
||
155 | public function getCompanyId() |
||
159 | |||
160 | /** |
||
161 | * @return null|string |
||
162 | */ |
||
163 | public function getContactEmail() |
||
167 | |||
168 | /** |
||
169 | * @return \DateTime |
||
170 | */ |
||
171 | public function getCreatedAt(): \DateTime |
||
175 | |||
176 | /** |
||
177 | * @return \DateTime |
||
178 | */ |
||
179 | public function getUpdatedAt(): \DateTime |
||
183 | |||
184 | /** |
||
185 | * @return int|null |
||
186 | */ |
||
187 | public function getThemeId() |
||
191 | |||
192 | /** |
||
193 | * @see Site::getBillingStatuses() |
||
194 | * |
||
195 | * @return string |
||
196 | */ |
||
197 | public function getBillingStatus(): string |
||
201 | |||
202 | /** |
||
203 | * @see Site::getTypes() |
||
204 | * |
||
205 | * @return string |
||
206 | */ |
||
207 | public function getType(): string |
||
211 | } |
||
212 |