1 | <?php |
||
38 | class CompanyContacts extends Component |
||
39 | { |
||
40 | use ReadObjectTrait; |
||
41 | |||
42 | /** |
||
43 | * The HubSpot Resource name |
||
44 | */ |
||
45 | const HUBSPOT_RESOURCE = 'companyContacts'; |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | public static function defaultTransformer() |
||
63 | |||
64 | /** |
||
65 | * @param array $config |
||
66 | * @return ObjectCriteriaInterface |
||
67 | */ |
||
68 | public function getCriteria(array $config = []): ObjectCriteriaInterface |
||
72 | |||
73 | /** |
||
74 | * @param array $config |
||
75 | * @return CompanyContactsBuilderInterface |
||
76 | */ |
||
77 | public function getBuilder(array $config = []): CompanyContactsBuilderInterface |
||
81 | |||
82 | /** |
||
83 | * @inheritdoc |
||
84 | */ |
||
85 | protected static function readRelayBuilderClass(): string |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | protected static function addRelayBuilderClass(): string |
||
97 | |||
98 | /** |
||
99 | * @return string |
||
100 | */ |
||
101 | protected static function removeRelayBuilderClass(): string |
||
105 | |||
106 | |||
107 | /******************************************* |
||
108 | * ADD |
||
109 | *******************************************/ |
||
110 | |||
111 | /** |
||
112 | * @param CompanyContactsBuilderInterface $builder |
||
113 | * @param ConnectionInterface|string|null $connection |
||
114 | * @param CacheInterface|string|null $cache |
||
115 | * @param TransformerCollectionInterface|array|null $transformer |
||
116 | * @param null $source |
||
117 | * @return mixed |
||
118 | * @throws \yii\base\InvalidConfigException |
||
119 | */ |
||
120 | public function add( |
||
136 | |||
137 | /** |
||
138 | * @param string $companyId |
||
139 | * @param string $contactId |
||
140 | * @param ConnectionInterface|string|null $connection |
||
141 | * @param CacheInterface|string|null $cache |
||
142 | * @param TransformerCollectionInterface|array|null $transformer |
||
143 | * @return PipelineBuilderInterface |
||
144 | * @throws \yii\base\InvalidConfigException |
||
145 | */ |
||
146 | public function rawAddPipeline( |
||
171 | |||
172 | /** |
||
173 | * @param string $companyId |
||
174 | * @param string $contactId |
||
175 | * @param ConnectionInterface|string|null $connection |
||
176 | * @param CacheInterface|string|null $cache |
||
177 | * @param TransformerCollectionInterface|array|null $transformer |
||
178 | * @param null $source |
||
179 | * @return mixed |
||
180 | * @throws \yii\base\InvalidConfigException |
||
181 | */ |
||
182 | public function rawAdd( |
||
198 | |||
199 | |||
200 | /** |
||
201 | * @param CompanyContactsBuilderInterface $builder |
||
202 | * @param ConnectionInterface|string|null $connection |
||
203 | * @param CacheInterface|string|null $cache |
||
204 | * @param TransformerCollectionInterface|array|null $transformer |
||
205 | * @return PipelineBuilderInterface |
||
206 | * @throws \yii\base\InvalidConfigException |
||
207 | */ |
||
208 | public function addPipeline( |
||
222 | |||
223 | /** |
||
224 | * @param CompanyContactsBuilderInterface $builder |
||
225 | * @param ConnectionInterface|string|null $connection |
||
226 | * @param CacheInterface|string|null $cache |
||
227 | * @return callable |
||
228 | * @throws \yii\base\InvalidConfigException |
||
229 | */ |
||
230 | public function httpAddRelay( |
||
242 | |||
243 | /** |
||
244 | * @param string $companyId |
||
245 | * @param string $contactId |
||
246 | * @param ConnectionInterface|string|null $connection |
||
247 | * @param CacheInterface|string|null $cache |
||
248 | * @return callable |
||
249 | * @throws \yii\base\InvalidConfigException |
||
250 | */ |
||
251 | public function rawHttpAddRelay( |
||
270 | |||
271 | /** |
||
272 | * @param CompanyContactsBuilderInterface $builder |
||
273 | * @param ConnectionInterface|string|null $connection |
||
274 | * @param CacheInterface|string|null $cache |
||
275 | * @return ResponseInterface |
||
276 | * @throws \yii\base\InvalidConfigException |
||
277 | */ |
||
278 | public function httpAdd( |
||
290 | |||
291 | /** |
||
292 | * @param string $companyId |
||
293 | * @param string $contactId |
||
294 | * @param ConnectionInterface|string|null $connection |
||
295 | * @param CacheInterface|string|null $cache |
||
296 | * @return ResponseInterface |
||
297 | * @throws \yii\base\InvalidConfigException |
||
298 | */ |
||
299 | public function rawHttpAdd( |
||
312 | |||
313 | |||
314 | /******************************************* |
||
315 | * REMOVE |
||
316 | *******************************************/ |
||
317 | |||
318 | /** |
||
319 | * @param CompanyContactsBuilderInterface $builder |
||
320 | * @param ConnectionInterface|string|null $connection |
||
321 | * @param CacheInterface|string|null $cache |
||
322 | * @param TransformerCollectionInterface|array|null $transformer |
||
323 | * @param null $source |
||
324 | * @return mixed |
||
325 | * @throws \yii\base\InvalidConfigException |
||
326 | */ |
||
327 | public function remove( |
||
343 | |||
344 | /** |
||
345 | * @param string $companyId |
||
346 | * @param string $contactId |
||
347 | * @param ConnectionInterface|string|null $connection |
||
348 | * @param CacheInterface|string|null $cache |
||
349 | * @param TransformerCollectionInterface|array|null $transformer |
||
350 | * @param null $source |
||
351 | * @return mixed |
||
352 | * @throws \yii\base\InvalidConfigException |
||
353 | */ |
||
354 | public function rawRemove( |
||
370 | |||
371 | /** |
||
372 | * @param CompanyContactsBuilderInterface $builder |
||
373 | * @param ConnectionInterface|string|null $connection |
||
374 | * @param CacheInterface|string|null $cache |
||
375 | * @param TransformerCollectionInterface|array|null $transformer |
||
376 | * @return PipelineBuilderInterface |
||
377 | * @throws \yii\base\InvalidConfigException |
||
378 | */ |
||
379 | public function removePipeline( |
||
393 | |||
394 | /** |
||
395 | * @param string $companyId |
||
396 | * @param string $contactId |
||
397 | * @param ConnectionInterface|string|null $connection |
||
398 | * @param CacheInterface|string|null $cache |
||
399 | * @param TransformerCollectionInterface|array|null $transformer |
||
400 | * @return PipelineBuilderInterface |
||
401 | * @throws \yii\base\InvalidConfigException |
||
402 | */ |
||
403 | public function rawRemovePipeline( |
||
428 | |||
429 | /** |
||
430 | * @param CompanyContactsBuilderInterface $builder |
||
431 | * @param ConnectionInterface|string|null $connection |
||
432 | * @param CacheInterface|string|null $cache |
||
433 | * @return callable |
||
434 | * @throws \yii\base\InvalidConfigException |
||
435 | */ |
||
436 | public function httpRemoveRelay( |
||
448 | |||
449 | /** |
||
450 | * @param string $companyId |
||
451 | * @param string $contactId |
||
452 | * @param ConnectionInterface|string|null $connection |
||
453 | * @param CacheInterface|string|null $cache |
||
454 | * @return callable |
||
455 | * @throws \yii\base\InvalidConfigException |
||
456 | */ |
||
457 | public function rawHttpRemoveRelay( |
||
476 | |||
477 | /** |
||
478 | * @param CompanyContactsBuilderInterface $builder |
||
479 | * @param ConnectionInterface|string|null $connection |
||
480 | * @param CacheInterface|string|null $cache |
||
481 | * @return ResponseInterface |
||
482 | * @throws \yii\base\InvalidConfigException |
||
483 | */ |
||
484 | public function httpRemove( |
||
496 | |||
497 | /** |
||
498 | * @param string $companyId |
||
499 | * @param string $contactId |
||
500 | * @param ConnectionInterface|string|null $connection |
||
501 | * @param CacheInterface|string|null $cache |
||
502 | * @return ResponseInterface |
||
503 | * @throws \yii\base\InvalidConfigException |
||
504 | */ |
||
505 | public function rawHttpRemove( |
||
518 | } |
||
519 |