@@ -8,10 +8,10 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\helpers; |
10 | 10 | |
11 | -use flipbox\hubspot\HubSpot; |
|
12 | -use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
13 | 11 | use Flipbox\Skeleton\Helpers\ObjectHelper; |
14 | 12 | use Flipbox\Transform\Transformers\TransformerInterface; |
13 | +use flipbox\hubspot\HubSpot; |
|
14 | +use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * @author Flipbox Factory <[email protected]> |
@@ -8,6 +8,11 @@ discard block |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\services\resources; |
10 | 10 | |
11 | +use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\AddContacts; |
|
12 | +use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\GetContacts; |
|
13 | +use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\RemoveContacts; |
|
14 | +use League\Pipeline\PipelineBuilderInterface; |
|
15 | +use Psr\SimpleCache\CacheInterface; |
|
11 | 16 | use craft\base\Element; |
12 | 17 | use craft\base\ElementInterface; |
13 | 18 | use flipbox\hubspot\connections\ConnectionInterface; |
@@ -17,11 +22,6 @@ discard block |
||
17 | 22 | use flipbox\hubspot\helpers\TransformerHelper; |
18 | 23 | use flipbox\hubspot\pipeline\Resource; |
19 | 24 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
20 | -use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\AddContacts; |
|
21 | -use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\GetContacts; |
|
22 | -use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\RemoveContacts; |
|
23 | -use League\Pipeline\PipelineBuilderInterface; |
|
24 | -use Psr\SimpleCache\CacheInterface; |
|
25 | 25 | use yii\base\Component; |
26 | 26 | |
27 | 27 | /** |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @inheritdoc |
42 | - * @return ContactListContactsCriteria |
|
42 | + * @return ContactListContactsCriteriaInterface |
|
43 | 43 | */ |
44 | 44 | public function getCriteria(array $criteria = []): ContactListContactsCriteriaInterface |
45 | 45 | { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | trait ElementCriteriaTrait |
21 | 21 | { |
22 | 22 | /** |
23 | - * @param array $criteria |
|
23 | + * @param \yii\base\BaseObject $criteria |
|
24 | 24 | * @return ObjectCriteriaInterface |
25 | 25 | */ |
26 | 26 | public abstract function getCriteria(array $criteria = []): ObjectCriteriaInterface; |
@@ -11,8 +11,8 @@ |
||
11 | 11 | use Craft; |
12 | 12 | use craft\base\ElementInterface; |
13 | 13 | use flipbox\ember\actions\traits\Manage; |
14 | -use flipbox\hubspot\fields\Objects; |
|
15 | 14 | use flipbox\hubspot\HubSpot; |
15 | +use flipbox\hubspot\fields\Objects; |
|
16 | 16 | use flipbox\hubspot\records\ObjectAssociation; |
17 | 17 | use yii\base\Action; |
18 | 18 | use yii\web\HttpException; |
@@ -14,13 +14,13 @@ |
||
14 | 14 | use craft\elements\db\ElementQueryInterface; |
15 | 15 | use flipbox\ember\helpers\ModelHelper; |
16 | 16 | use flipbox\ember\validators\MinMaxValidator; |
17 | +use flipbox\hubspot\HubSpot; |
|
17 | 18 | use flipbox\hubspot\criteria\CompanyCriteria; |
18 | 19 | use flipbox\hubspot\criteria\ContactCriteria; |
19 | 20 | use flipbox\hubspot\criteria\ContactListCriteria; |
20 | 21 | use flipbox\hubspot\criteria\ObjectCriteria; |
21 | 22 | use flipbox\hubspot\criteria\ObjectCriteriaInterface; |
22 | 23 | use flipbox\hubspot\db\ObjectAssociationQuery; |
23 | -use flipbox\hubspot\HubSpot; |
|
24 | 24 | use flipbox\hubspot\records\ObjectAssociation; |
25 | 25 | use flipbox\hubspot\services\resources\Companies; |
26 | 26 | use flipbox\hubspot\services\resources\ContactLists; |
@@ -185,7 +185,7 @@ |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
188 | - * @param $source |
|
188 | + * @param string $source |
|
189 | 189 | * @param int $fieldId |
190 | 190 | * @param int $siteId |
191 | 191 | * @return array |
@@ -18,9 +18,9 @@ |
||
18 | 18 | use flipbox\craft\sortable\associations\services\SortableAssociations; |
19 | 19 | use flipbox\ember\services\traits\records\Accessor; |
20 | 20 | use flipbox\ember\validators\MinMaxValidator; |
21 | +use flipbox\hubspot\HubSpot; |
|
21 | 22 | use flipbox\hubspot\db\ObjectAssociationQuery; |
22 | 23 | use flipbox\hubspot\fields\Objects; |
23 | -use flipbox\hubspot\HubSpot; |
|
24 | 24 | use flipbox\hubspot\records\ObjectAssociation; |
25 | 25 | |
26 | 26 | /** |
@@ -8,12 +8,12 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\services\resources\traits; |
10 | 10 | |
11 | +use League\Pipeline\PipelineBuilderInterface; |
|
11 | 12 | use craft\base\Element; |
12 | 13 | use craft\base\ElementInterface; |
13 | 14 | use flipbox\hubspot\criteria\ObjectCriteriaInterface; |
14 | 15 | use flipbox\hubspot\fields\Objects; |
15 | 16 | use flipbox\hubspot\helpers\TransformerHelper; |
16 | -use League\Pipeline\PipelineBuilderInterface; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * @author Flipbox Factory <[email protected]> |
@@ -8,11 +8,11 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\transformers\elements; |
10 | 10 | |
11 | +use Flipbox\Transform\Transformers\AbstractSimpleTransformer; |
|
11 | 12 | use craft\base\ElementInterface; |
12 | 13 | use craft\helpers\Json; |
13 | -use flipbox\hubspot\fields\Objects; |
|
14 | 14 | use flipbox\hubspot\HubSpot; |
15 | -use Flipbox\Transform\Transformers\AbstractSimpleTransformer; |
|
15 | +use flipbox\hubspot\fields\Objects; |
|
16 | 16 | |
17 | 17 | class ObjectId extends AbstractSimpleTransformer |
18 | 18 | { |
@@ -8,8 +8,8 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\patron\connections; |
10 | 10 | |
11 | -use flipbox\hubspot\connections\IntegrationConnectionInterface; |
|
12 | 11 | use Flipbox\OAuth2\Client\Provider\HubSpotResourceOwner; |
12 | +use flipbox\hubspot\connections\IntegrationConnectionInterface; |
|
13 | 13 | use yii\base\BaseObject; |
14 | 14 | |
15 | 15 | /** |