Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
eventconnection.php
1<?php
2
4
7
9{
11 private int $version = 0;
13 private ?Event $event = null;
15 private string $vendorEventId = '';
17 private ?Connection $connection = null;
19 private string $lastSyncStatus = '';
21 private int $retryCount = 0;
23 private ?string $entityTag = null;
25 private ?array $data = null;
27 private ?string $recurrenceId = null;
29 private ?int $id = null;
31 private ?string $vendorVersionId = null;
32
38 public function setId(?int $id): EventConnection
39 {
40 $this->id = $id;
41
42 return $this;
43 }
44
48 public function getId(): ?int
49 {
50 return $this->id;
51 }
52
56 public function getEvent(): Event
57 {
58 return $this->event;
59 }
60
66 public function setEvent(Event $event): self
67 {
68 $this->event = $event;
69
70 return $this;
71 }
72
76 public function getVendorEventId(): string
77 {
78 return $this->vendorEventId;
79 }
80
85 public function setVendorEventId(string $vendorEventId): self
86 {
87 $this->vendorEventId = $vendorEventId;
88
89 return $this;
90 }
91
95 public function getConnection(): Connection
96 {
97 return $this->connection;
98 }
99
105 public function setConnection(Connection $connection): self
106 {
107 $this->connection = $connection;
108
109 return $this;
110 }
111
115 public function getLastSyncStatus(): string
116 {
117 return $this->lastSyncStatus;
118 }
119
125 public function setLastSyncStatus(string $lastSyncStatus): self
126 {
127 $this->lastSyncStatus = $lastSyncStatus;
128
129 return $this;
130 }
131
137 public function setRetryCount(int $retryCount = 0): EventConnection
138 {
139 $this->retryCount = $retryCount;
140
141 return $this;
142 }
143
147 public function getRetryCount(): int
148 {
149 return $this->retryCount;
150 }
151
155 public function getEntityTag(): ?string
156 {
157 return $this->entityTag;
158 }
159
163 public function getVendorVersionId(): ?string
164 {
165 return $this->vendorVersionId;
166 }
167
173 public function setVendorVersionId(?string $versionId): self
174 {
175 $this->vendorVersionId = $versionId;
176
177 return $this;
178 }
179
185 public function setEntityTag(?string $entityTag = null): self
186 {
187 $this->entityTag = $entityTag;
188
189 return $this;
190 }
191
196 public function setVersion(int $version): self
197 {
198 $this->version = $version;
199
200 return $this;
201 }
202
206 public function getVersion(): int
207 {
208 return $this->version;
209 }
210
211 public function getData(): ?array
212 {
213 return $this->data;
214 }
215
216 public function setData($data): EventConnection
217 {
218 $this->data = $data;
219
220 return $this;
221 }
222
226 public function getEventVersion(): ?string
227 {
228 return $this->getVersion();
229 }
230
235 public function setRecurrenceId(?string $id): EventConnection
236 {
237 $this->recurrenceId = $id;
238
239 return $this;
240 }
241
245 public function getRecurrenceId(): ?string
246 {
247 return $this->recurrenceId;
248 }
249
250 public function upVersion()
251 {
252 $this->version++;
253 }
254}