Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sectionsyncdata.php
1<?php
2
4
8{
12 protected $connectionId;
16 protected $sectionId;
24 protected $syncToken;
28 protected $pageToken;
32 protected $isActive;
36 protected $lastSync;
40 protected $lastSyncStatus;
44 protected $version;
45 protected $connectionType;
46
52 {
53 $this->connectionId = $connectionId;
54
55 return $this;
56 }
57
63 {
64 $this->sectionId = $sectionId;
65
66 return $this;
67 }
68
74 {
75 $this->vendorSectionId = $vendorSectionId;
76
77 return $this;
78 }
79
84 public function setSyncToken(string $syncToken): SectionSyncData
85 {
86 $this->syncToken = $syncToken;
87
88 return $this;
89 }
90
95 public function setPageToken(string $pageToken): SectionSyncData
96 {
97 $this->pageToken = $pageToken;
98
99 return $this;
100 }
101
106 public function setIsActive(bool $isActive): SectionSyncData
107 {
108 $this->isActive = $isActive;
109
110 return $this;
111 }
112
118 {
119 $this->lastSync = $lastSync;
120
121 return $this;
122 }
123
129 {
130 $this->lastSyncStatus = $lastSyncStatus;
131
132 return $this;
133 }
134
139 public function setVersion(int $version): SectionSyncData
140 {
141 $this->version = $version;
142
143 return $this;
144 }
145
149 public function getConnectionId(): int
150 {
151 return $this->connectionId;
152 }
153
157 public function getSectionId(): int
158 {
159 return $this->sectionId;
160 }
161
165 public function getVendorSectionId(): string
166 {
168 }
169
173 public function getSyncToken(): string
174 {
175 return $this->syncToken;
176 }
177
181 public function getPageToken(): string
182 {
183 return $this->pageToken;
184 }
185
189 public function isActive(): bool
190 {
191 return $this->isActive;
192 }
193
197 public function getLastSync(): Date
198 {
199 return $this->lastSync;
200 }
201
205 public function getLastSyncStatus(): string
206 {
208 }
209
213 public function getVersion(): int
214 {
215 return $this->version;
216 }
217
221 public function getConnectionType(): string
222 {
223 // ToDo return connection type
225 }
226
232 {
233 $this->connectionType = $connectionType;
234
235 return $this;
236 }
237}