1 | <?php |
||
49 | class FederatedShare extends ManagedModel implements IFederatedModel, JsonSerializable, INC22QueryRow, IDeserializable { |
||
50 | |||
51 | |||
52 | use TArrayTools; |
||
53 | |||
54 | |||
55 | /** @var int */ |
||
56 | private $id = 0; |
||
57 | |||
58 | /** @var string */ |
||
59 | private $itemId = ''; |
||
60 | |||
61 | /** @var string */ |
||
62 | private $circleId = ''; |
||
63 | |||
64 | /** @var string */ |
||
65 | private $instance = ''; |
||
66 | |||
67 | /** @var string */ |
||
68 | private $lockStatus = ''; |
||
69 | |||
70 | /** @var SimpleDataStore */ |
||
71 | private $data; |
||
72 | |||
73 | |||
74 | /** |
||
75 | * FederatedShare constructor. |
||
76 | */ |
||
77 | function __construct() { |
||
79 | |||
80 | |||
81 | /** |
||
82 | * @param int $id |
||
83 | * |
||
84 | * @return FederatedShare |
||
85 | */ |
||
86 | public function setId(int $id): self { |
||
91 | |||
92 | /** |
||
93 | * @return int |
||
94 | */ |
||
95 | public function getId(): int { |
||
98 | |||
99 | |||
100 | /** |
||
101 | * @param string $itemId |
||
102 | * |
||
103 | * @return FederatedShare |
||
104 | */ |
||
105 | public function setItemId(string $itemId): self { |
||
110 | |||
111 | /** |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getItemId(): string { |
||
117 | |||
118 | |||
119 | /** |
||
120 | * @param string $circleId |
||
121 | * |
||
122 | * @return FederatedShare |
||
123 | */ |
||
124 | public function setCircleId(string $circleId): self { |
||
129 | |||
130 | /** |
||
131 | * @return string |
||
132 | */ |
||
133 | public function getCircleId(): string { |
||
136 | |||
137 | |||
138 | /** |
||
139 | * @param string $instance |
||
140 | * |
||
141 | * @return FederatedShare |
||
142 | */ |
||
143 | public function setInstance(string $instance): self { |
||
148 | |||
149 | |||
150 | /** |
||
151 | * @param string $lockStatus |
||
152 | * |
||
153 | * @return FederatedShare |
||
154 | */ |
||
155 | public function setLockStatus(string $lockStatus): self { |
||
160 | |||
161 | /** |
||
162 | * @return string |
||
163 | */ |
||
164 | public function getLockStatus(): string { |
||
167 | |||
168 | |||
169 | /** |
||
170 | * @return string |
||
171 | */ |
||
172 | public function getInstance(): string { |
||
175 | |||
176 | /** |
||
177 | * @return bool |
||
178 | */ |
||
179 | public function isLocal(): bool { |
||
182 | |||
183 | |||
184 | /** |
||
185 | * @param array $data |
||
186 | * |
||
187 | * @return IDeserializable |
||
188 | */ |
||
189 | public function import(array $data): IDeserializable { |
||
197 | |||
198 | |||
199 | /** |
||
200 | * @param array $data |
||
201 | * |
||
202 | * @return INC22QueryRow |
||
203 | */ |
||
204 | public function importFromDatabase(array $data): INC22QueryRow { |
||
216 | |||
217 | |||
218 | /** |
||
219 | * @return array |
||
220 | */ |
||
221 | public function jsonSerialize(): array { |
||
229 | |||
230 | } |
||
231 | |||
232 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.