Skip to content

Commit dab4204

Browse files
authored
Merge pull request #660 from PowerSync/develop-2.4.4
Develop 2.4.4
2 parents eb65587 + fc185c9 commit dab4204

File tree

4 files changed

+27
-6
lines changed

4 files changed

+27
-6
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php declare(strict_types=1);
2+
/**
3+
* Copyright © 2022 TechNWeb, Inc. All rights reserved.
4+
* See TNW_LICENSE.txt for license details.
5+
*/
6+
namespace TNW\Salesforce\Api\Service\Model\Grid\Executor\ByCollection;
7+
use Magento\Framework\Data\Collection;
8+
9+
/**
10+
* Interface GetIdsFilteredByCustomerGroupConfigurationInterface
11+
*/
12+
interface CreateCollectionInterface
13+
{
14+
15+
/**
16+
* @param array|null $entityIds
17+
* @return Collection
18+
*/
19+
public function execute(array $entityIds = null): Collection;
20+
}

Service/Model/Grid/Executor/ByCollection/CreateCollection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
use Magento\Framework\Exception\LocalizedException;
1414
use Magento\Framework\Model\ResourceModel\AbstractResource;
1515
use TNW\Salesforce\Api\Model\Grid\GetColumnsDataItems\Executor\ByCollection\CreateCollection\ModifierInterface;
16+
use TNW\Salesforce\Api\Service\Model\Grid\Executor\ByCollection\CreateCollectionInterface;
1617

17-
class CreateCollection
18+
class CreateCollection implements CreateCollectionInterface
1819
{
1920
/** @var string */
2021
private $collectionClassName;

Service/Model/Grid/Executor/GetColumnDataByCollection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
use TNW\Salesforce\Api\ChunkSizeInterface;
1313
use TNW\Salesforce\Api\CleanableInstanceInterface;
1414
use TNW\Salesforce\Api\Model\Grid\GetColumnsDataItems\ExecutorInterface;
15-
use TNW\Salesforce\Service\Model\Grid\Executor\ByCollection\CreateCollection;
15+
use TNW\Salesforce\Api\Service\Model\Grid\Executor\ByCollection\CreateCollectionInterface;
1616

1717
class GetColumnDataByCollection implements ExecutorInterface, CleanableInstanceInterface
1818
{
1919
public const RESULT_TYPE_INT = 1;
2020
public const RESULT_TYPE_STRING = 2;
2121
public const RESULT_TYPE_BOOLEAN = 3;
2222

23-
/** @var CreateCollection */
23+
/** @var CreateCollectionInterface */
2424
private $createCollection;
2525

2626
/** @var array */
@@ -39,12 +39,12 @@ class GetColumnDataByCollection implements ExecutorInterface, CleanableInstanceI
3939
private $allowNull;
4040

4141
/**
42-
* @param CreateCollection $createCollection
42+
* @param CreateCollectionInterface $createCollection
4343
* @param string|null $resultType
4444
* @param bool $allowNull
4545
*/
4646
public function __construct(
47-
CreateCollection $createCollection,
47+
CreateCollectionInterface $createCollection,
4848
string $resultType = null,
4949
bool $allowNull = true
5050
) {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"gpl-3.0"
1212
],
1313
"type": "magento2-module",
14-
"version": "2.10.8",
14+
"version": "2.10.9",
1515
"autoload": {
1616
"files": [
1717
"registration.php"

0 commit comments

Comments
 (0)