@@ -107,8 +107,8 @@ discard block |
||
| 107 | 107 | * @param string $id |
| 108 | 108 | * @param string $typeId |
| 109 | 109 | * @param IntegrationConnectionInterface|null $connection |
| 110 | - * @param CacheInterface|string|null $cache |
|
| 111 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 110 | + * @param null|CacheInterface $cache |
|
| 111 | + * @param null|TransformerCollectionInterface $transformer |
|
| 112 | 112 | * @param null $source |
| 113 | 113 | * @return mixed |
| 114 | 114 | * @throws \yii\base\InvalidConfigException |
@@ -151,8 +151,8 @@ discard block |
||
| 151 | 151 | * @param string $id |
| 152 | 152 | * @param string $typeId |
| 153 | 153 | * @param IntegrationConnectionInterface|null $connection |
| 154 | - * @param CacheInterface|string|null $cache |
|
| 155 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 154 | + * @param null|CacheInterface $cache |
|
| 155 | + * @param null|TransformerCollectionInterface $transformer |
|
| 156 | 156 | * @return PipelineBuilderInterface |
| 157 | 157 | * @throws \yii\base\InvalidConfigException |
| 158 | 158 | */ |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | * @param string $id |
| 203 | 203 | * @param string $typeId |
| 204 | 204 | * @param IntegrationConnectionInterface|null $connection |
| 205 | - * @param CacheInterface|string|null $cache |
|
| 205 | + * @param null|CacheInterface $cache |
|
| 206 | 206 | * @return ResponseInterface |
| 207 | 207 | * @throws \yii\base\InvalidConfigException |
| 208 | 208 | */ |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | |
| 223 | 223 | /** |
| 224 | 224 | * @param TimelineEventAccessorInterface $criteria |
| 225 | - * @return callable |
|
| 225 | + * @return \Flipbox\Relay\Runner\Runner |
|
| 226 | 226 | * @throws \yii\base\InvalidConfigException |
| 227 | 227 | */ |
| 228 | 228 | public function httpReadRelay( |
@@ -240,8 +240,8 @@ discard block |
||
| 240 | 240 | * @param string $id |
| 241 | 241 | * @param string $typeId |
| 242 | 242 | * @param IntegrationConnectionInterface|null $connection |
| 243 | - * @param CacheInterface|string|null $cache |
|
| 244 | - * @return callable |
|
| 243 | + * @param null|CacheInterface $cache |
|
| 244 | + * @return \Flipbox\Relay\Runner\Runner |
|
| 245 | 245 | * @throws \yii\base\InvalidConfigException |
| 246 | 246 | */ |
| 247 | 247 | public function rawHttpReadRelay( |
@@ -293,8 +293,8 @@ discard block |
||
| 293 | 293 | * @param string $id |
| 294 | 294 | * @param array $payload |
| 295 | 295 | * @param IntegrationConnectionInterface|null $connection |
| 296 | - * @param CacheInterface|string|null $cache |
|
| 297 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 296 | + * @param null|CacheInterface $cache |
|
| 297 | + * @param null|TransformerCollectionInterface $transformer |
|
| 298 | 298 | * @param null $source |
| 299 | 299 | * @return mixed |
| 300 | 300 | * @throws \yii\base\InvalidConfigException |
@@ -341,8 +341,8 @@ discard block |
||
| 341 | 341 | * @param string $id |
| 342 | 342 | * @param array $payload |
| 343 | 343 | * @param IntegrationConnectionInterface|null $connection |
| 344 | - * @param CacheInterface|string|null $cache |
|
| 345 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 344 | + * @param null|CacheInterface $cache |
|
| 345 | + * @param null|TransformerCollectionInterface $transformer |
|
| 346 | 346 | * @return PipelineBuilderInterface |
| 347 | 347 | * @throws \yii\base\InvalidConfigException |
| 348 | 348 | */ |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | * @param string $id |
| 397 | 397 | * @param array $payload |
| 398 | 398 | * @param IntegrationConnectionInterface|null $connection |
| 399 | - * @param CacheInterface|string|null $cache |
|
| 399 | + * @param null|CacheInterface $cache |
|
| 400 | 400 | * @return ResponseInterface |
| 401 | 401 | * @throws \yii\base\InvalidConfigException |
| 402 | 402 | */ |
@@ -418,7 +418,7 @@ discard block |
||
| 418 | 418 | |
| 419 | 419 | /** |
| 420 | 420 | * @param TimelineEventMutatorInterface $criteria |
| 421 | - * @return callable |
|
| 421 | + * @return \Flipbox\Relay\Runner\Runner |
|
| 422 | 422 | * @throws \yii\base\InvalidConfigException |
| 423 | 423 | */ |
| 424 | 424 | public function httpUpsertRelay( |
@@ -438,8 +438,8 @@ discard block |
||
| 438 | 438 | * @param string $id |
| 439 | 439 | * @param array $payload |
| 440 | 440 | * @param IntegrationConnectionInterface|null $connection |
| 441 | - * @param CacheInterface|string|null $cache |
|
| 442 | - * @return callable |
|
| 441 | + * @param null|CacheInterface $cache |
|
| 442 | + * @return \Flipbox\Relay\Runner\Runner |
|
| 443 | 443 | * @throws \yii\base\InvalidConfigException |
| 444 | 444 | */ |
| 445 | 445 | public function rawHttpUpsertRelay( |
@@ -9,21 +9,21 @@ |
||
| 9 | 9 | namespace flipbox\hubspot\services\resources; |
| 10 | 10 | |
| 11 | 11 | use Craft; |
| 12 | +use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Read; |
|
| 13 | +use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Upsert; |
|
| 14 | +use League\Pipeline\PipelineBuilderInterface; |
|
| 15 | +use Psr\Http\Message\ResponseInterface; |
|
| 16 | +use Psr\SimpleCache\CacheInterface; |
|
| 17 | +use flipbox\hubspot\HubSpot; |
|
| 12 | 18 | use flipbox\hubspot\connections\IntegrationConnectionInterface; |
| 13 | 19 | use flipbox\hubspot\criteria\TimelineEventAccessorInterface; |
| 14 | 20 | use flipbox\hubspot\criteria\TimelineEventMutatorInterface; |
| 15 | 21 | use flipbox\hubspot\helpers\CacheHelper; |
| 16 | 22 | use flipbox\hubspot\helpers\ConnectionHelper; |
| 17 | 23 | use flipbox\hubspot\helpers\TransformerHelper; |
| 18 | -use flipbox\hubspot\HubSpot; |
|
| 19 | 24 | use flipbox\hubspot\pipeline\Resource; |
| 20 | 25 | use flipbox\hubspot\queue\jobs\UpsertTimelineEvent; |
| 21 | 26 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 22 | -use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Read; |
|
| 23 | -use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Upsert; |
|
| 24 | -use League\Pipeline\PipelineBuilderInterface; |
|
| 25 | -use Psr\Http\Message\ResponseInterface; |
|
| 26 | -use Psr\SimpleCache\CacheInterface; |
|
| 27 | 27 | use yii\base\Component; |
| 28 | 28 | |
| 29 | 29 | /** |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * @param array $payload |
| 58 | - * @param ConnectionInterface|string|null $connection |
|
| 59 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 58 | + * @param null|ConnectionInterface $connection |
|
| 59 | + * @param null|TransformerCollectionInterface $transformer |
|
| 60 | 60 | * @param null $source |
| 61 | 61 | * @return mixed |
| 62 | 62 | * @throws \yii\base\InvalidConfigException |
@@ -91,8 +91,8 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * @param array $payload |
| 94 | - * @param ConnectionInterface|string|null $connection |
|
| 95 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 94 | + * @param null|ConnectionInterface $connection |
|
| 95 | + * @param null|TransformerCollectionInterface $transformer |
|
| 96 | 96 | * @return PipelineBuilderInterface |
| 97 | 97 | * @throws \yii\base\InvalidConfigException |
| 98 | 98 | */ |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | |
| 135 | 135 | /** |
| 136 | 136 | * @param array $payload |
| 137 | - * @param ConnectionInterface|string|null $connection |
|
| 137 | + * @param null|ConnectionInterface $connection |
|
| 138 | 138 | * @return callable |
| 139 | 139 | * @throws \yii\base\InvalidConfigException |
| 140 | 140 | */ |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | /** |
| 172 | 172 | * @param array $payload |
| 173 | - * @param ConnectionInterface|string|null $connection |
|
| 173 | + * @param null|ConnectionInterface $connection |
|
| 174 | 174 | * @return ResponseInterface |
| 175 | 175 | * @throws \yii\base\InvalidConfigException |
| 176 | 176 | */ |
@@ -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\connections\ConnectionInterface; |
| 12 | 16 | use flipbox\hubspot\criteria\ObjectMutatorInterface; |
| 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]> |
@@ -58,9 +58,9 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @param string $id |
| 61 | - * @param ConnectionInterface|string|null $connection |
|
| 62 | - * @param CacheInterface|string|null $cache |
|
| 63 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 61 | + * @param null|ConnectionInterface $connection |
|
| 62 | + * @param null|CacheInterface $cache |
|
| 63 | + * @param null|TransformerCollectionInterface $transformer |
|
| 64 | 64 | * @param null $source |
| 65 | 65 | * @return mixed |
| 66 | 66 | * @throws \yii\base\InvalidConfigException |
@@ -98,9 +98,9 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * @param string $id |
| 101 | - * @param ConnectionInterface|string|null $connection |
|
| 102 | - * @param CacheInterface|string|null $cache |
|
| 103 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 101 | + * @param null|ConnectionInterface $connection |
|
| 102 | + * @param null|CacheInterface $cache |
|
| 103 | + * @param null|TransformerCollectionInterface $transformer |
|
| 104 | 104 | * @return PipelineBuilderInterface |
| 105 | 105 | * @throws \yii\base\InvalidConfigException |
| 106 | 106 | */ |
@@ -145,8 +145,8 @@ discard block |
||
| 145 | 145 | |
| 146 | 146 | /** |
| 147 | 147 | * @param string $id |
| 148 | - * @param ConnectionInterface|string|null $connection |
|
| 149 | - * @param CacheInterface|string|null $cache |
|
| 148 | + * @param null|ConnectionInterface $connection |
|
| 149 | + * @param null|CacheInterface $cache |
|
| 150 | 150 | * @return callable |
| 151 | 151 | * @throws \yii\base\InvalidConfigException |
| 152 | 152 | */ |
@@ -185,8 +185,8 @@ discard block |
||
| 185 | 185 | |
| 186 | 186 | /** |
| 187 | 187 | * @param string $id |
| 188 | - * @param ConnectionInterface|string|null $connection |
|
| 189 | - * @param CacheInterface|string|null $cache |
|
| 188 | + * @param null|ConnectionInterface $connection |
|
| 189 | + * @param null|CacheInterface $cache |
|
| 190 | 190 | * @return ResponseInterface |
| 191 | 191 | * @throws \yii\base\InvalidConfigException |
| 192 | 192 | */ |
@@ -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\ObjectMutatorInterface; |
| 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]> |
@@ -58,9 +58,9 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @param $id |
| 61 | - * @param ConnectionInterface|string|null $connection |
|
| 62 | - * @param CacheInterface|string|null $cache |
|
| 63 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 61 | + * @param null|ConnectionInterface $connection |
|
| 62 | + * @param null|CacheInterface $cache |
|
| 63 | + * @param null|TransformerCollectionInterface $transformer |
|
| 64 | 64 | * @param null $source |
| 65 | 65 | * @return mixed |
| 66 | 66 | * @throws \yii\base\InvalidConfigException |
@@ -98,9 +98,9 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * @param $id |
| 101 | - * @param ConnectionInterface|string|null $connection |
|
| 102 | - * @param CacheInterface|string|null $cache |
|
| 103 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 101 | + * @param null|ConnectionInterface $connection |
|
| 102 | + * @param null|CacheInterface $cache |
|
| 103 | + * @param null|TransformerCollectionInterface $transformer |
|
| 104 | 104 | * @return PipelineBuilderInterface |
| 105 | 105 | * @throws \yii\base\InvalidConfigException |
| 106 | 106 | */ |
@@ -144,9 +144,9 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | /** |
| 147 | - * @param $id |
|
| 148 | - * @param ConnectionInterface|string|null $connection |
|
| 149 | - * @param CacheInterface|string|null $cache |
|
| 147 | + * @param string|null $id |
|
| 148 | + * @param null|ConnectionInterface $connection |
|
| 149 | + * @param null|CacheInterface $cache |
|
| 150 | 150 | * @return ResponseInterface |
| 151 | 151 | * @throws \yii\base\InvalidConfigException |
| 152 | 152 | */ |
@@ -179,8 +179,8 @@ discard block |
||
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * @param $id |
| 182 | - * @param ConnectionInterface|string|null $connection |
|
| 183 | - * @param CacheInterface|string|null $cache |
|
| 182 | + * @param null|ConnectionInterface $connection |
|
| 183 | + * @param null|CacheInterface $cache |
|
| 184 | 184 | * @return callable |
| 185 | 185 | * @throws \yii\base\InvalidConfigException |
| 186 | 186 | */ |
@@ -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\ObjectAccessorInterface; |
| 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]> |
@@ -60,9 +60,9 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * @param string $id |
| 62 | 62 | * @param array $payload |
| 63 | - * @param ConnectionInterface|string|null $connection |
|
| 64 | - * @param CacheInterface|string|null $cache |
|
| 65 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 63 | + * @param null|ConnectionInterface $connection |
|
| 64 | + * @param null|CacheInterface $cache |
|
| 65 | + * @param null|TransformerCollectionInterface $transformer |
|
| 66 | 66 | * @param null $source |
| 67 | 67 | * @return mixed |
| 68 | 68 | * @throws \yii\base\InvalidConfigException |
@@ -104,9 +104,9 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * @param string $id |
| 106 | 106 | * @param array $payload |
| 107 | - * @param ConnectionInterface|string|null $connection |
|
| 108 | - * @param CacheInterface|string|null $cache |
|
| 109 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 107 | + * @param null|ConnectionInterface $connection |
|
| 108 | + * @param null|CacheInterface $cache |
|
| 109 | + * @param null|TransformerCollectionInterface $transformer |
|
| 110 | 110 | * @return PipelineBuilderInterface |
| 111 | 111 | * @throws \yii\base\InvalidConfigException |
| 112 | 112 | */ |
@@ -155,8 +155,8 @@ discard block |
||
| 155 | 155 | /** |
| 156 | 156 | * @param string $id |
| 157 | 157 | * @param array $payload |
| 158 | - * @param ConnectionInterface|string|null $connection |
|
| 159 | - * @param CacheInterface|string|null $cache |
|
| 158 | + * @param null|ConnectionInterface $connection |
|
| 159 | + * @param null|CacheInterface $cache |
|
| 160 | 160 | * @return callable |
| 161 | 161 | * @throws \yii\base\InvalidConfigException |
| 162 | 162 | */ |
@@ -199,8 +199,8 @@ discard block |
||
| 199 | 199 | /** |
| 200 | 200 | * @param string $id |
| 201 | 201 | * @param array $payload |
| 202 | - * @param ConnectionInterface|string|null $connection |
|
| 203 | - * @param CacheInterface|string|null $cache |
|
| 202 | + * @param null|ConnectionInterface $connection |
|
| 203 | + * @param null|CacheInterface $cache |
|
| 204 | 204 | * @return ResponseInterface |
| 205 | 205 | * @throws \yii\base\InvalidConfigException |
| 206 | 206 | */ |
@@ -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\ObjectMutatorInterface; |
| 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]> |