@@ -8,14 +8,14 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\pipeline; |
10 | 10 | |
11 | -use flipbox\hubspot\HubSpot; |
|
12 | -use flipbox\hubspot\pipeline\pipelines\HttpPipeline; |
|
13 | -use flipbox\hubspot\pipeline\stages\TransformerCollectionStage; |
|
14 | -use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
15 | 11 | use Flipbox\Pipeline\Builders\BuilderTrait; |
16 | 12 | use Flipbox\Skeleton\Object\AbstractObject; |
17 | 13 | use League\Pipeline\PipelineBuilderInterface; |
18 | 14 | use Psr\Log\LoggerInterface; |
15 | +use flipbox\hubspot\HubSpot; |
|
16 | +use flipbox\hubspot\pipeline\pipelines\HttpPipeline; |
|
17 | +use flipbox\hubspot\pipeline\stages\TransformerCollectionStage; |
|
18 | +use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * A Relay pipeline builder intended to make building the Relay and Pipeline easier. |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * @param CompanyContactsBuilderInterface $builder |
187 | 187 | * @param ConnectionInterface|null $connection |
188 | 188 | * @param CacheInterface|null $cache |
189 | - * @return callable |
|
189 | + * @return \Flipbox\Relay\Runner\Runner |
|
190 | 190 | * @throws \yii\base\InvalidConfigException |
191 | 191 | */ |
192 | 192 | public function httpAddRelay( |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * @param string $contactId |
208 | 208 | * @param ConnectionInterface|null $connection |
209 | 209 | * @param CacheInterface|null $cache |
210 | - * @return callable |
|
210 | + * @return \Flipbox\Relay\Runner\Runner |
|
211 | 211 | * @throws \yii\base\InvalidConfigException |
212 | 212 | */ |
213 | 213 | public function rawHttpAddRelay( |
@@ -248,8 +248,8 @@ discard block |
||
248 | 248 | /** |
249 | 249 | * @param string $companyId |
250 | 250 | * @param string $contactId |
251 | - * @param ConnectionInterface|null $connection |
|
252 | - * @param CacheInterface|null $cache |
|
251 | + * @param ConnectionInterface $connection |
|
252 | + * @param CacheInterface $cache |
|
253 | 253 | * @return ResponseInterface |
254 | 254 | * @throws \yii\base\InvalidConfigException |
255 | 255 | */ |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | * @param CompanyContactsBuilderInterface $builder |
385 | 385 | * @param ConnectionInterface|null $connection |
386 | 386 | * @param CacheInterface|null $cache |
387 | - * @return callable |
|
387 | + * @return \Flipbox\Relay\Runner\Runner |
|
388 | 388 | * @throws \yii\base\InvalidConfigException |
389 | 389 | */ |
390 | 390 | public function httpRemoveRelay( |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | * @param string $contactId |
406 | 406 | * @param ConnectionInterface|null $connection |
407 | 407 | * @param CacheInterface|null $cache |
408 | - * @return callable |
|
408 | + * @return \Flipbox\Relay\Runner\Runner |
|
409 | 409 | * @throws \yii\base\InvalidConfigException |
410 | 410 | */ |
411 | 411 | public function rawHttpRemoveRelay( |
@@ -446,8 +446,8 @@ discard block |
||
446 | 446 | /** |
447 | 447 | * @param string $companyId |
448 | 448 | * @param string $contactId |
449 | - * @param ConnectionInterface|null $connection |
|
450 | - * @param CacheInterface|null $cache |
|
449 | + * @param ConnectionInterface $connection |
|
450 | + * @param CacheInterface $cache |
|
451 | 451 | * @return ResponseInterface |
452 | 452 | * @throws \yii\base\InvalidConfigException |
453 | 453 | */ |
@@ -8,6 +8,13 @@ discard block |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\services\resources; |
10 | 10 | |
11 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Add; |
|
12 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\All; |
|
13 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Remove; |
|
14 | +use League\Pipeline\PipelineBuilderInterface; |
|
15 | +use Psr\Http\Message\ResponseInterface; |
|
16 | +use Psr\SimpleCache\CacheInterface; |
|
17 | +use flipbox\hubspot\HubSpot; |
|
11 | 18 | use flipbox\hubspot\builders\CompanyContactsBuilder; |
12 | 19 | use flipbox\hubspot\builders\CompanyContactsBuilderInterface; |
13 | 20 | use flipbox\hubspot\connections\ConnectionInterface; |
@@ -16,16 +23,9 @@ discard block |
||
16 | 23 | use flipbox\hubspot\helpers\CacheHelper; |
17 | 24 | use flipbox\hubspot\helpers\ConnectionHelper; |
18 | 25 | use flipbox\hubspot\helpers\TransformerHelper; |
19 | -use flipbox\hubspot\HubSpot; |
|
20 | 26 | use flipbox\hubspot\pipeline\Resource; |
21 | 27 | use flipbox\hubspot\services\resources\traits\ReadObjectTrait; |
22 | 28 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
23 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Add; |
|
24 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\All; |
|
25 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Remove; |
|
26 | -use League\Pipeline\PipelineBuilderInterface; |
|
27 | -use Psr\Http\Message\ResponseInterface; |
|
28 | -use Psr\SimpleCache\CacheInterface; |
|
29 | 29 | use yii\base\Component; |
30 | 30 | |
31 | 31 | /** |
@@ -8,6 +8,12 @@ discard block |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\services\resources; |
10 | 10 | |
11 | +use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Add; |
|
12 | +use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\All; |
|
13 | +use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Remove; |
|
14 | +use League\Pipeline\PipelineBuilderInterface; |
|
15 | +use Psr\SimpleCache\CacheInterface; |
|
16 | +use flipbox\hubspot\HubSpot; |
|
11 | 17 | use flipbox\hubspot\builders\ContactListContactsBuilder; |
12 | 18 | use flipbox\hubspot\builders\ObjectBuilderInterface; |
13 | 19 | use flipbox\hubspot\connections\ConnectionInterface; |
@@ -16,17 +22,11 @@ discard block |
||
16 | 22 | use flipbox\hubspot\helpers\CacheHelper; |
17 | 23 | use flipbox\hubspot\helpers\ConnectionHelper; |
18 | 24 | use flipbox\hubspot\helpers\TransformerHelper; |
19 | -use flipbox\hubspot\HubSpot; |
|
20 | 25 | use flipbox\hubspot\pipeline\Resource; |
21 | 26 | use flipbox\hubspot\services\resources\traits\AddObjectTrait; |
22 | 27 | use flipbox\hubspot\services\resources\traits\ReadObjectTrait; |
23 | 28 | use flipbox\hubspot\services\resources\traits\RemoveObjectTrait; |
24 | 29 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
25 | -use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Add; |
|
26 | -use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\All; |
|
27 | -use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Remove; |
|
28 | -use League\Pipeline\PipelineBuilderInterface; |
|
29 | -use Psr\SimpleCache\CacheInterface; |
|
30 | 30 | use yii\base\Component; |
31 | 31 | |
32 | 32 | /** |
@@ -8,16 +8,16 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\services\resources\traits; |
10 | 10 | |
11 | +use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
12 | +use League\Pipeline\PipelineBuilderInterface; |
|
13 | +use Psr\Http\Message\ResponseInterface; |
|
14 | +use flipbox\hubspot\HubSpot; |
|
11 | 15 | use flipbox\hubspot\builders\ObjectBuilderInterface; |
12 | 16 | use flipbox\hubspot\connections\ConnectionInterface; |
13 | 17 | use flipbox\hubspot\helpers\ConnectionHelper; |
14 | 18 | use flipbox\hubspot\helpers\TransformerHelper; |
15 | -use flipbox\hubspot\HubSpot; |
|
16 | 19 | use flipbox\hubspot\pipeline\Resource; |
17 | 20 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
18 | -use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
19 | -use League\Pipeline\PipelineBuilderInterface; |
|
20 | -use Psr\Http\Message\ResponseInterface; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @author Flipbox Factory <[email protected]> |
@@ -164,7 +164,7 @@ |
||
164 | 164 | } |
165 | 165 | |
166 | 166 | /** |
167 | - * @param $id |
|
167 | + * @param string|null $id |
|
168 | 168 | * @param ConnectionInterface|null $connection |
169 | 169 | * @param CacheInterface|null $cache |
170 | 170 | * @return ResponseInterface |
@@ -8,18 +8,18 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\services\resources\traits; |
10 | 10 | |
11 | +use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
12 | +use League\Pipeline\PipelineBuilderInterface; |
|
13 | +use Psr\Http\Message\ResponseInterface; |
|
14 | +use Psr\SimpleCache\CacheInterface; |
|
15 | +use flipbox\hubspot\HubSpot; |
|
11 | 16 | use flipbox\hubspot\connections\ConnectionInterface; |
12 | 17 | use flipbox\hubspot\criteria\ObjectCriteriaInterface; |
13 | 18 | use flipbox\hubspot\helpers\CacheHelper; |
14 | 19 | use flipbox\hubspot\helpers\ConnectionHelper; |
15 | 20 | use flipbox\hubspot\helpers\TransformerHelper; |
16 | -use flipbox\hubspot\HubSpot; |
|
17 | 21 | use flipbox\hubspot\pipeline\Resource; |
18 | 22 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
19 | -use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
20 | -use League\Pipeline\PipelineBuilderInterface; |
|
21 | -use Psr\Http\Message\ResponseInterface; |
|
22 | -use Psr\SimpleCache\CacheInterface; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @author Flipbox Factory <[email protected]> |
@@ -172,8 +172,8 @@ |
||
172 | 172 | /** |
173 | 173 | * @param string $id |
174 | 174 | * @param array $payload |
175 | - * @param ConnectionInterface|null $connection |
|
176 | - * @param CacheInterface|null $cache |
|
175 | + * @param ConnectionInterface $connection |
|
176 | + * @param CacheInterface $cache |
|
177 | 177 | * @return ResponseInterface |
178 | 178 | * @throws \yii\base\InvalidConfigException |
179 | 179 | */ |
@@ -8,12 +8,12 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\services\resources\traits; |
10 | 10 | |
11 | -use flipbox\hubspot\builders\ObjectBuilderInterface; |
|
12 | -use flipbox\hubspot\connections\ConnectionInterface; |
|
13 | -use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
14 | 11 | use League\Pipeline\PipelineBuilderInterface; |
15 | 12 | use Psr\Http\Message\ResponseInterface; |
16 | 13 | use Psr\SimpleCache\CacheInterface; |
14 | +use flipbox\hubspot\builders\ObjectBuilderInterface; |
|
15 | +use flipbox\hubspot\connections\ConnectionInterface; |
|
16 | +use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * @author Flipbox Factory <[email protected]> |
@@ -172,8 +172,8 @@ |
||
172 | 172 | /** |
173 | 173 | * @param string $id |
174 | 174 | * @param array $payload |
175 | - * @param ConnectionInterface|null $connection |
|
176 | - * @param CacheInterface|null $cache |
|
175 | + * @param ConnectionInterface $connection |
|
176 | + * @param CacheInterface $cache |
|
177 | 177 | * @return ResponseInterface |
178 | 178 | * @throws \yii\base\InvalidConfigException |
179 | 179 | */ |
@@ -8,18 +8,18 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\services\resources\traits; |
10 | 10 | |
11 | +use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
12 | +use League\Pipeline\PipelineBuilderInterface; |
|
13 | +use Psr\Http\Message\ResponseInterface; |
|
14 | +use Psr\SimpleCache\CacheInterface; |
|
15 | +use flipbox\hubspot\HubSpot; |
|
11 | 16 | use flipbox\hubspot\builders\ObjectBuilderInterface; |
12 | 17 | use flipbox\hubspot\connections\ConnectionInterface; |
13 | 18 | use flipbox\hubspot\helpers\CacheHelper; |
14 | 19 | use flipbox\hubspot\helpers\ConnectionHelper; |
15 | 20 | use flipbox\hubspot\helpers\TransformerHelper; |
16 | -use flipbox\hubspot\HubSpot; |
|
17 | 21 | use flipbox\hubspot\pipeline\Resource; |
18 | 22 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
19 | -use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
20 | -use League\Pipeline\PipelineBuilderInterface; |
|
21 | -use Psr\Http\Message\ResponseInterface; |
|
22 | -use Psr\SimpleCache\CacheInterface; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @author Flipbox Factory <[email protected]> |
@@ -8,12 +8,12 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\services\resources\traits; |
10 | 10 | |
11 | -use flipbox\hubspot\builders\ObjectBuilderInterface; |
|
12 | -use flipbox\hubspot\connections\ConnectionInterface; |
|
13 | -use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
14 | 11 | use League\Pipeline\PipelineBuilderInterface; |
15 | 12 | use Psr\Http\Message\ResponseInterface; |
16 | 13 | use Psr\SimpleCache\CacheInterface; |
14 | +use flipbox\hubspot\builders\ObjectBuilderInterface; |
|
15 | +use flipbox\hubspot\connections\ConnectionInterface; |
|
16 | +use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * @author Flipbox Factory <[email protected]> |