Skip to content

Commit

Permalink
MAGETWO-67344: Solve issues with API #9124
Browse files Browse the repository at this point in the history
 - Updated getList method signatures to be compatible with SearchCriteriaInterface instead of SearchCriteria
  • Loading branch information
ishakhsuvarov committed Apr 11, 2017
1 parent acfecad commit 90327a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Api/CaseRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public function delete(\Magento\Signifyd\Api\Data\CaseInterface $case);
/**
* Gets list of case entities.
*
* @param \Magento\Framework\Api\SearchCriteria $searchCriteria
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
* @return \Magento\Signifyd\Api\Data\CaseSearchResultsInterface
*/
public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria);
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
}
4 changes: 2 additions & 2 deletions Model/CaseRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Signifyd\Model;

use Magento\Framework\Api\SearchCriteria;
use Magento\Framework\Api\SearchCriteriaInterface;
use Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface;
use Magento\Signifyd\Api\CaseRepositoryInterface;
use Magento\Signifyd\Api\Data\CaseInterface;
Expand Down Expand Up @@ -118,7 +118,7 @@ public function delete(CaseInterface $case)
/**
* @inheritdoc
*/
public function getList(SearchCriteria $searchCriteria)
public function getList(SearchCriteriaInterface $searchCriteria)
{
/** @var Collection $collection */
$collection = $this->collectionFactory->create();
Expand Down

0 comments on commit 90327a9

Please sign in to comment.