Skip to content

Commit

Permalink
Merge pull request #660 from PowerSync/develop-2.4.4
Browse files Browse the repository at this point in the history
Develop 2.4.4
  • Loading branch information
eermolaev authored Jan 12, 2023
2 parents eb65587 + fc185c9 commit dab4204
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php declare(strict_types=1);
/**
* Copyright © 2022 TechNWeb, Inc. All rights reserved.
* See TNW_LICENSE.txt for license details.
*/
namespace TNW\Salesforce\Api\Service\Model\Grid\Executor\ByCollection;
use Magento\Framework\Data\Collection;

/**
* Interface GetIdsFilteredByCustomerGroupConfigurationInterface
*/
interface CreateCollectionInterface
{

/**
* @param array|null $entityIds
* @return Collection
*/
public function execute(array $entityIds = null): Collection;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Model\ResourceModel\AbstractResource;
use TNW\Salesforce\Api\Model\Grid\GetColumnsDataItems\Executor\ByCollection\CreateCollection\ModifierInterface;
use TNW\Salesforce\Api\Service\Model\Grid\Executor\ByCollection\CreateCollectionInterface;

class CreateCollection
class CreateCollection implements CreateCollectionInterface
{
/** @var string */
private $collectionClassName;
Expand Down
8 changes: 4 additions & 4 deletions Service/Model/Grid/Executor/GetColumnDataByCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
use TNW\Salesforce\Api\ChunkSizeInterface;
use TNW\Salesforce\Api\CleanableInstanceInterface;
use TNW\Salesforce\Api\Model\Grid\GetColumnsDataItems\ExecutorInterface;
use TNW\Salesforce\Service\Model\Grid\Executor\ByCollection\CreateCollection;
use TNW\Salesforce\Api\Service\Model\Grid\Executor\ByCollection\CreateCollectionInterface;

class GetColumnDataByCollection implements ExecutorInterface, CleanableInstanceInterface
{
public const RESULT_TYPE_INT = 1;
public const RESULT_TYPE_STRING = 2;
public const RESULT_TYPE_BOOLEAN = 3;

/** @var CreateCollection */
/** @var CreateCollectionInterface */
private $createCollection;

/** @var array */
Expand All @@ -39,12 +39,12 @@ class GetColumnDataByCollection implements ExecutorInterface, CleanableInstanceI
private $allowNull;

/**
* @param CreateCollection $createCollection
* @param CreateCollectionInterface $createCollection
* @param string|null $resultType
* @param bool $allowNull
*/
public function __construct(
CreateCollection $createCollection,
CreateCollectionInterface $createCollection,
string $resultType = null,
bool $allowNull = true
) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"gpl-3.0"
],
"type": "magento2-module",
"version": "2.10.8",
"version": "2.10.9",
"autoload": {
"files": [
"registration.php"
Expand Down

0 comments on commit dab4204

Please sign in to comment.