1 | <?php |
||
26 | class Company |
||
27 | { |
||
28 | /** |
||
29 | * @param string|null $identifier |
||
30 | * @return bool |
||
31 | */ |
||
32 | protected static function upsertHasId(string $identifier = null): bool |
||
36 | |||
37 | /******************************************* |
||
38 | * CREATE |
||
39 | *******************************************/ |
||
40 | |||
41 | /** |
||
42 | * @param array $payload |
||
43 | * @param ConnectionInterface|null $connection |
||
44 | * @param LoggerInterface $logger |
||
45 | * @param array $config |
||
46 | * @return ResponseInterface |
||
47 | */ |
||
48 | public static function create( |
||
61 | |||
62 | /** |
||
63 | * @param array $payload |
||
64 | * @param ConnectionInterface|null $connection |
||
65 | * @param LoggerInterface $logger |
||
66 | * @param array $config |
||
67 | * @return callable |
||
68 | */ |
||
69 | public static function createRelay( |
||
85 | |||
86 | |||
87 | /******************************************* |
||
88 | * READ |
||
89 | *******************************************/ |
||
90 | |||
91 | /** |
||
92 | * @param ConnectionInterface|null $connection |
||
93 | * @param CacheInterface|null $cache |
||
94 | * @param string $identifier |
||
95 | * @param LoggerInterface|null $logger |
||
96 | * @param array $config |
||
97 | * @return ResponseInterface |
||
98 | */ |
||
99 | public static function read( |
||
114 | |||
115 | /** |
||
116 | * @param ConnectionInterface|null $connection |
||
117 | * @param CacheInterface|null $cache |
||
118 | * @param string $identifier |
||
119 | * @param LoggerInterface|null $logger |
||
120 | * @param array $config |
||
121 | * @return callable |
||
122 | */ |
||
123 | public static function readRelay( |
||
141 | |||
142 | |||
143 | /******************************************* |
||
144 | * UPDATE |
||
145 | *******************************************/ |
||
146 | |||
147 | /** |
||
148 | * @param string $identifier |
||
149 | * @param array $payload |
||
150 | * @param ConnectionInterface|null $connection |
||
151 | * @param CacheInterface|null $cache |
||
152 | * @param LoggerInterface|null $logger |
||
153 | * @param array $config |
||
154 | * @return ResponseInterface |
||
155 | */ |
||
156 | public static function update( |
||
173 | |||
174 | /** |
||
175 | * @param string $identifier |
||
176 | * @param array $payload |
||
177 | * @param ConnectionInterface|null $connection |
||
178 | * @param CacheInterface|null $cache |
||
179 | * @param LoggerInterface|null $logger |
||
180 | * @param array $config |
||
181 | * @return callable |
||
182 | */ |
||
183 | public static function updateRelay( |
||
203 | |||
204 | |||
205 | /******************************************* |
||
206 | * UPSERT |
||
207 | *******************************************/ |
||
208 | |||
209 | /** |
||
210 | * @param ConnectionInterface|null $connection |
||
211 | * @param CacheInterface|null $cache |
||
212 | * @param array $payload |
||
213 | * @param string|null $identifier |
||
214 | * @param LoggerInterface|null $logger |
||
215 | * @param array $config |
||
216 | * @return ResponseInterface |
||
217 | */ |
||
218 | public static function upsert( |
||
235 | |||
236 | /** |
||
237 | * @param ConnectionInterface|null $connection |
||
238 | * @param CacheInterface|null $cache |
||
239 | * @param array $payload |
||
240 | * @param string|null $identifier |
||
241 | * @param LoggerInterface|null $logger |
||
242 | * @param array $config |
||
243 | * @return callable |
||
244 | */ |
||
245 | public static function upsertRelay( |
||
272 | |||
273 | |||
274 | /******************************************* |
||
275 | * DELETE |
||
276 | *******************************************/ |
||
277 | |||
278 | /** |
||
279 | * @param string $identifier |
||
280 | * @param ConnectionInterface|null $connection |
||
281 | * @param CacheInterface|null $cache |
||
282 | * @param LoggerInterface $logger |
||
283 | * @param array $config |
||
284 | * @return ResponseInterface |
||
285 | */ |
||
286 | public static function delete( |
||
301 | |||
302 | /** |
||
303 | * @param string $identifier |
||
304 | * @param ConnectionInterface|null $connection |
||
305 | * @param CacheInterface|null $cache |
||
306 | * @param LoggerInterface $logger |
||
307 | * @param array $config |
||
308 | * @return callable |
||
309 | */ |
||
310 | public static function deleteRelay( |
||
328 | |||
329 | |||
330 | /******************************************* |
||
331 | * LIST (by Domain) |
||
332 | *******************************************/ |
||
333 | |||
334 | /** |
||
335 | * @param string $domain |
||
336 | * @param array $payload |
||
337 | * @param ConnectionInterface|null $connection |
||
338 | * @param CacheInterface|null $cache |
||
339 | * @param LoggerInterface|null $logger |
||
340 | * @param array $config |
||
341 | * @return ResponseInterface |
||
342 | */ |
||
343 | public static function listByDomain( |
||
360 | |||
361 | /** |
||
362 | * @param string $domain |
||
363 | * @param array $payload |
||
364 | * @param ConnectionInterface|null $connection |
||
365 | * @param CacheInterface|null $cache |
||
366 | * @param LoggerInterface|null $logger |
||
367 | * @param array $config |
||
368 | * @return callable |
||
369 | */ |
||
370 | public static function listByDomainRelay( |
||
390 | } |
||
391 |