@@ -328,6 +328,7 @@ discard block |
||
| 328 | 328 | /** |
| 329 | 329 | * @inheritdoc |
| 330 | 330 | * @throws \Throwable |
| 331 | + * @param callable $transformer |
|
| 331 | 332 | */ |
| 332 | 333 | public function syncToSalesforce( |
| 333 | 334 | ElementInterface $element, |
@@ -417,6 +418,7 @@ discard block |
||
| 417 | 418 | * @throws \Throwable |
| 418 | 419 | * @throws \craft\errors\ElementNotFoundException |
| 419 | 420 | * @throws \yii\base\Exception |
| 421 | + * @param callable $transformer |
|
| 420 | 422 | */ |
| 421 | 423 | public function syncFromSalesforce( |
| 422 | 424 | ElementInterface $element, |
@@ -492,7 +494,7 @@ discard block |
||
| 492 | 494 | } |
| 493 | 495 | |
| 494 | 496 | /** |
| 495 | - * @param ResponseInterface|Element $response |
|
| 497 | + * @param ResponseInterface $response |
|
| 496 | 498 | * @param ElementInterface $element |
| 497 | 499 | * @param string|null $objectId |
| 498 | 500 | * @return bool |
@@ -549,7 +551,7 @@ discard block |
||
| 549 | 551 | /** |
| 550 | 552 | * @param int $elementId |
| 551 | 553 | * @param int|null $siteId |
| 552 | - * @return bool|false|string|null |
|
| 554 | + * @return null|string |
|
| 553 | 555 | */ |
| 554 | 556 | public function findObjectIdFromElementId( |
| 555 | 557 | int $elementId = null, |
@@ -586,7 +588,7 @@ discard block |
||
| 586 | 588 | /** |
| 587 | 589 | * @param string $objectId |
| 588 | 590 | * @param int|null $siteId |
| 589 | - * @return bool|false|string|null |
|
| 591 | + * @return null|string |
|
| 590 | 592 | */ |
| 591 | 593 | public function findElementIdFromObjectId( |
| 592 | 594 | string $objectId = null, |
@@ -9,6 +9,9 @@ discard block |
||
| 9 | 9 | namespace flipbox\craft\salesforce\fields; |
| 10 | 10 | |
| 11 | 11 | use Craft; |
| 12 | +use Flipbox\Salesforce\Connections\ConnectionInterface; |
|
| 13 | +use Psr\Http\Message\ResponseInterface; |
|
| 14 | +use Psr\SimpleCache\CacheInterface; |
|
| 12 | 15 | use craft\base\Element; |
| 13 | 16 | use craft\base\ElementInterface; |
| 14 | 17 | use craft\helpers\ArrayHelper; |
@@ -17,19 +20,16 @@ discard block |
||
| 17 | 20 | use flipbox\craft\ember\helpers\SiteHelper; |
| 18 | 21 | use flipbox\craft\integration\fields\Integrations; |
| 19 | 22 | use flipbox\craft\integration\queries\IntegrationAssociationQuery; |
| 23 | +use flipbox\craft\salesforce\Force; |
|
| 20 | 24 | use flipbox\craft\salesforce\criteria\ObjectCriteria; |
| 21 | 25 | use flipbox\craft\salesforce\fields\actions\SyncItemFrom; |
| 22 | 26 | use flipbox\craft\salesforce\fields\actions\SyncItemTo; |
| 23 | 27 | use flipbox\craft\salesforce\fields\actions\SyncTo; |
| 24 | -use flipbox\craft\salesforce\Force; |
|
| 25 | 28 | use flipbox\craft\salesforce\helpers\ObjectHelper; |
| 26 | 29 | use flipbox\craft\salesforce\helpers\TransformerHelper; |
| 27 | 30 | use flipbox\craft\salesforce\records\ObjectAssociation; |
| 28 | 31 | use flipbox\craft\salesforce\transformers\PopulateElementErrorsFromResponse; |
| 29 | 32 | use flipbox\craft\salesforce\transformers\PopulateElementErrorsFromUpsertResponse; |
| 30 | -use Flipbox\Salesforce\Connections\ConnectionInterface; |
|
| 31 | -use Psr\Http\Message\ResponseInterface; |
|
| 32 | -use Psr\SimpleCache\CacheInterface; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @author Flipbox Factory <[email protected]> |