1 | <?php |
||
28 | trait SyncByElementTrait |
||
29 | { |
||
30 | use TransformElementIdTrait, |
||
31 | TransformElementPayloadTrait; |
||
32 | |||
33 | /** |
||
34 | * @param string $id |
||
35 | * @param ConnectionInterface|string|null $connection |
||
36 | * @param CacheInterface|string|null $cache |
||
37 | * @return callable |
||
38 | */ |
||
39 | public abstract function rawHttpReadRelay( |
||
44 | |||
45 | /** |
||
46 | * @param array $payload |
||
47 | * @param string|null $identifier |
||
48 | * @param ConnectionInterface|string|null $connection |
||
49 | * @param CacheInterface|string|null $cache |
||
50 | * @return callable |
||
51 | * @throws \yii\base\InvalidConfigException |
||
52 | */ |
||
53 | public abstract function rawHttpUpsertRelay( |
||
59 | |||
60 | /** |
||
61 | * @param ElementInterface $element |
||
62 | * @param Objects $field |
||
63 | * @param ConnectionInterface|null $connection |
||
64 | * @param CacheInterface|null $cache |
||
65 | * @return bool |
||
66 | * @throws \yii\base\InvalidConfigException |
||
67 | */ |
||
68 | public function syncDown( |
||
89 | |||
90 | /** |
||
91 | * @param ElementInterface $element |
||
92 | * @param Objects $field |
||
93 | * @param string $id |
||
94 | * @param ConnectionInterface|null $connection |
||
95 | * @param CacheInterface|null $cache |
||
96 | * @return bool |
||
97 | * @throws \yii\base\InvalidConfigException |
||
98 | */ |
||
99 | public function rawSyncDown( |
||
124 | |||
125 | /** |
||
126 | * @param ElementInterface $element |
||
127 | * @param Objects $field |
||
128 | * @param ConnectionInterface|null $connection |
||
129 | * @param CacheInterface|null $cache |
||
130 | * @return bool |
||
131 | * @throws \yii\base\InvalidConfigException |
||
132 | */ |
||
133 | |||
134 | public function syncUp( |
||
149 | |||
150 | /** |
||
151 | * @param ElementInterface $element |
||
152 | * @param Objects $field |
||
153 | * @param array $payload |
||
154 | * @param string|null $id |
||
155 | * @param ConnectionInterface|null $connection |
||
156 | * @param CacheInterface|null $cache |
||
157 | * @return bool |
||
158 | * @throws \yii\base\InvalidConfigException |
||
159 | */ |
||
160 | public function rawSyncUp( |
||
185 | } |
||
186 |