@@ -5,8 +5,8 @@ |
||
| 5 | 5 | use Craft; |
| 6 | 6 | use craft\base\ElementInterface; |
| 7 | 7 | use craft\queue\BaseJob; |
| 8 | -use flipbox\hubspot\fields\Objects; |
|
| 9 | 8 | use flipbox\hubspot\HubSpot; |
| 9 | +use flipbox\hubspot\fields\Objects; |
|
| 10 | 10 | use yii\base\Component; |
| 11 | 11 | use yii\base\InvalidConfigException; |
| 12 | 12 | |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | use craft\base\ElementInterface; |
| 13 | 13 | use flipbox\ember\actions\traits\Manage; |
| 14 | 14 | use flipbox\ember\helpers\SiteHelper; |
| 15 | -use flipbox\hubspot\fields\Objects; |
|
| 16 | 15 | use flipbox\hubspot\HubSpot; |
| 16 | +use flipbox\hubspot\fields\Objects; |
|
| 17 | 17 | use flipbox\hubspot\records\ObjectAssociation; |
| 18 | 18 | use yii\base\Action; |
| 19 | 19 | use yii\web\HttpException; |
@@ -8,13 +8,13 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\transformers\elements; |
| 10 | 10 | |
| 11 | +use Flipbox\Transform\Transformers\AbstractSimpleTransformer; |
|
| 11 | 12 | use craft\base\Element; |
| 12 | 13 | use craft\base\ElementInterface; |
| 13 | 14 | use craft\helpers\Json; |
| 14 | 15 | use flipbox\ember\helpers\SiteHelper; |
| 15 | -use flipbox\hubspot\fields\Objects; |
|
| 16 | 16 | use flipbox\hubspot\HubSpot; |
| 17 | -use Flipbox\Transform\Transformers\AbstractSimpleTransformer; |
|
| 17 | +use flipbox\hubspot\fields\Objects; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @author Flipbox Factory <[email protected]> |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | namespace flipbox\hubspot\criteria\traits; |
| 10 | 10 | |
| 11 | 11 | use flipbox\hubspot\helpers\TransformerHelper; |
| 12 | -use flipbox\hubspot\traits\TransformerResolverTrait; |
|
| 13 | 12 | use flipbox\hubspot\transformers\collections\DynamicTransformerCollection; |
| 14 | 13 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 15 | 14 | |
@@ -8,11 +8,11 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\helpers; |
| 10 | 10 | |
| 11 | +use Flipbox\Skeleton\Helpers\ObjectHelper; |
|
| 12 | +use Flipbox\Transform\Transformers\TransformerInterface; |
|
| 11 | 13 | use flipbox\hubspot\HubSpot; |
| 12 | 14 | use flipbox\hubspot\transformers\collections\TransformerCollection; |
| 13 | 15 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 14 | -use Flipbox\Skeleton\Helpers\ObjectHelper; |
|
| 15 | -use Flipbox\Transform\Transformers\TransformerInterface; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * @author Flipbox Factory <[email protected]> |
@@ -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. |
@@ -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]> |
@@ -32,8 +32,8 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @param ObjectBuilderInterface $builder |
| 35 | - * @param ConnectionInterface|string|null $connection |
|
| 36 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 35 | + * @param null|ConnectionInterface $connection |
|
| 36 | + * @param null|TransformerCollectionInterface $transformer |
|
| 37 | 37 | * @param null $source |
| 38 | 38 | * @return mixed |
| 39 | 39 | * @throws \yii\base\InvalidConfigException |
@@ -54,8 +54,8 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * @param array $payload |
| 57 | - * @param ConnectionInterface|string|null $connection |
|
| 58 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 57 | + * @param null|ConnectionInterface $connection |
|
| 58 | + * @param null|TransformerCollectionInterface $transformer |
|
| 59 | 59 | * @param null $source |
| 60 | 60 | * @return mixed |
| 61 | 61 | * @throws \yii\base\InvalidConfigException |
@@ -75,8 +75,8 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * @param ObjectBuilderInterface $builder |
| 78 | - * @param ConnectionInterface|string|null $connection |
|
| 79 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 78 | + * @param null|ConnectionInterface $connection |
|
| 79 | + * @param null|TransformerCollectionInterface $transformer |
|
| 80 | 80 | * @return PipelineBuilderInterface |
| 81 | 81 | * @throws \yii\base\InvalidConfigException |
| 82 | 82 | */ |
@@ -94,8 +94,8 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | 96 | * @param array $payload |
| 97 | - * @param ConnectionInterface|string|null $connection |
|
| 98 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 97 | + * @param null|ConnectionInterface $connection |
|
| 98 | + * @param null|TransformerCollectionInterface $transformer |
|
| 99 | 99 | * @return PipelineBuilderInterface |
| 100 | 100 | * @throws \yii\base\InvalidConfigException |
| 101 | 101 | */ |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | |
| 124 | 124 | /** |
| 125 | 125 | * @param ObjectBuilderInterface $builder |
| 126 | - * @param ConnectionInterface|string|null $connection |
|
| 126 | + * @param null|ConnectionInterface $connection |
|
| 127 | 127 | * @return callable |
| 128 | 128 | * @throws \yii\base\InvalidConfigException |
| 129 | 129 | */ |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | 141 | * @param array $payload |
| 142 | - * @param ConnectionInterface|string|null $connection |
|
| 142 | + * @param null|ConnectionInterface $connection |
|
| 143 | 143 | * @return callable |
| 144 | 144 | * @throws \yii\base\InvalidConfigException |
| 145 | 145 | */ |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | /** |
| 163 | 163 | * @param ObjectBuilderInterface $builder |
| 164 | - * @param ConnectionInterface|string|null $connection |
|
| 164 | + * @param null|ConnectionInterface $connection |
|
| 165 | 165 | * @return ResponseInterface |
| 166 | 166 | * @throws \yii\base\InvalidConfigException |
| 167 | 167 | */ |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | |
| 178 | 178 | /** |
| 179 | 179 | * @param array $payload |
| 180 | - * @param ConnectionInterface|string|null $connection |
|
| 180 | + * @param null|ConnectionInterface $connection |
|
| 181 | 181 | * @return ResponseInterface |
| 182 | 182 | * @throws \yii\base\InvalidConfigException |
| 183 | 183 | */ |
@@ -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]> |
@@ -34,9 +34,9 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param ObjectBuilderInterface $builder |
| 37 | - * @param ConnectionInterface|string|null $connection |
|
| 38 | - * @param CacheInterface|string|null $cache |
|
| 39 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 37 | + * @param null|ConnectionInterface $connection |
|
| 38 | + * @param null|CacheInterface $cache |
|
| 39 | + * @param null|TransformerCollectionInterface $transformer |
|
| 40 | 40 | * @param null $source |
| 41 | 41 | * @return mixed |
| 42 | 42 | * @throws \yii\base\InvalidConfigException |
@@ -59,9 +59,9 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * @param string $id |
| 62 | - * @param ConnectionInterface|string|null $connection |
|
| 63 | - * @param CacheInterface|string|null $cache |
|
| 64 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 62 | + * @param null|ConnectionInterface $connection |
|
| 63 | + * @param null|CacheInterface $cache |
|
| 64 | + * @param null|TransformerCollectionInterface $transformer |
|
| 65 | 65 | * @param null $source |
| 66 | 66 | * @return mixed |
| 67 | 67 | * @throws \yii\base\InvalidConfigException |
@@ -83,9 +83,9 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | 85 | * @param ObjectBuilderInterface $builder |
| 86 | - * @param ConnectionInterface|string|null $connection |
|
| 87 | - * @param CacheInterface|string|null $cache |
|
| 88 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 86 | + * @param null|ConnectionInterface $connection |
|
| 87 | + * @param null|CacheInterface $cache |
|
| 88 | + * @param null|TransformerCollectionInterface $transformer |
|
| 89 | 89 | * @return PipelineBuilderInterface |
| 90 | 90 | * @throws \yii\base\InvalidConfigException |
| 91 | 91 | */ |
@@ -105,9 +105,9 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | 107 | * @param string $id |
| 108 | - * @param ConnectionInterface|string|null $connection |
|
| 109 | - * @param CacheInterface|string|null $cache |
|
| 110 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 108 | + * @param null|ConnectionInterface $connection |
|
| 109 | + * @param null|CacheInterface $cache |
|
| 110 | + * @param null|TransformerCollectionInterface $transformer |
|
| 111 | 111 | * @return PipelineBuilderInterface |
| 112 | 112 | * @throws \yii\base\InvalidConfigException |
| 113 | 113 | */ |
@@ -137,8 +137,8 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | /** |
| 139 | 139 | * @param ObjectBuilderInterface $builder |
| 140 | - * @param ConnectionInterface|string|null $connection |
|
| 141 | - * @param CacheInterface|string|null $cache |
|
| 140 | + * @param null|ConnectionInterface $connection |
|
| 141 | + * @param null|CacheInterface $cache |
|
| 142 | 142 | * @return callable |
| 143 | 143 | * @throws \yii\base\InvalidConfigException |
| 144 | 144 | */ |
@@ -156,8 +156,8 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | 158 | * @param string $id |
| 159 | - * @param ConnectionInterface|string|null $connection |
|
| 160 | - * @param CacheInterface|string|null $cache |
|
| 159 | + * @param null|ConnectionInterface $connection |
|
| 160 | + * @param null|CacheInterface $cache |
|
| 161 | 161 | * @return callable |
| 162 | 162 | * @throws \yii\base\InvalidConfigException |
| 163 | 163 | */ |
@@ -181,8 +181,8 @@ discard block |
||
| 181 | 181 | |
| 182 | 182 | /** |
| 183 | 183 | * @param ObjectBuilderInterface $builder |
| 184 | - * @param ConnectionInterface|string|null $connection |
|
| 185 | - * @param CacheInterface|string|null $cache |
|
| 184 | + * @param null|ConnectionInterface $connection |
|
| 185 | + * @param null|CacheInterface $cache |
|
| 186 | 186 | * @return ResponseInterface |
| 187 | 187 | * @throws \yii\base\InvalidConfigException |
| 188 | 188 | */ |
@@ -200,8 +200,8 @@ discard block |
||
| 200 | 200 | |
| 201 | 201 | /** |
| 202 | 202 | * @param string $id |
| 203 | - * @param ConnectionInterface|string|null $connection |
|
| 204 | - * @param CacheInterface|string|null $cache |
|
| 203 | + * @param null|ConnectionInterface $connection |
|
| 204 | + * @param null|CacheInterface $cache |
|
| 205 | 205 | * @return ResponseInterface |
| 206 | 206 | * @throws \yii\base\InvalidConfigException |
| 207 | 207 | */ |
@@ -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]> |
@@ -34,8 +34,8 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param $id |
| 37 | - * @param ConnectionInterface|string|null $connection |
|
| 38 | - * @param CacheInterface|string|null $cache |
|
| 37 | + * @param null|ConnectionInterface $connection |
|
| 38 | + * @param null|CacheInterface $cache |
|
| 39 | 39 | * @return callable |
| 40 | 40 | * @throws \yii\base\InvalidConfigException |
| 41 | 41 | */ |
@@ -78,9 +78,9 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | 80 | * @param $id |
| 81 | - * @param ConnectionInterface|string|null $connection |
|
| 82 | - * @param CacheInterface|string|null $cache |
|
| 83 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 81 | + * @param null|ConnectionInterface $connection |
|
| 82 | + * @param null|CacheInterface $cache |
|
| 83 | + * @param null|TransformerCollectionInterface $transformer |
|
| 84 | 84 | * @param null $source |
| 85 | 85 | * @return mixed |
| 86 | 86 | * @throws \yii\base\InvalidConfigException |
@@ -118,9 +118,9 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * @param $id |
| 121 | - * @param ConnectionInterface|string|null $connection |
|
| 122 | - * @param CacheInterface|string|null $cache |
|
| 123 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 121 | + * @param null|ConnectionInterface $connection |
|
| 122 | + * @param null|CacheInterface $cache |
|
| 123 | + * @param null|TransformerCollectionInterface $transformer |
|
| 124 | 124 | * @return PipelineBuilderInterface |
| 125 | 125 | * @throws \yii\base\InvalidConfigException |
| 126 | 126 | */ |
@@ -164,9 +164,9 @@ discard block |
||
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
| 167 | - * @param $id |
|
| 168 | - * @param ConnectionInterface|string|null $connection |
|
| 169 | - * @param CacheInterface|string|null $cache |
|
| 167 | + * @param string|null $id |
|
| 168 | + * @param null|ConnectionInterface $connection |
|
| 169 | + * @param null|CacheInterface $cache |
|
| 170 | 170 | * @return ResponseInterface |
| 171 | 171 | * @throws \yii\base\InvalidConfigException |
| 172 | 172 | */ |