From 90327a926d45135df599f1ee551c8f00673e4c4a Mon Sep 17 00:00:00 2001 From: Ievgen Shakhsuvarov Date: Tue, 11 Apr 2017 15:23:21 +0300 Subject: [PATCH] MAGETWO-67344: Solve issues with API #9124 - Updated getList method signatures to be compatible with SearchCriteriaInterface instead of SearchCriteria --- Api/CaseRepositoryInterface.php | 4 ++-- Model/CaseRepository.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Api/CaseRepositoryInterface.php b/Api/CaseRepositoryInterface.php index 2be176ba41111..707cc4f3ccb12 100644 --- a/Api/CaseRepositoryInterface.php +++ b/Api/CaseRepositoryInterface.php @@ -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); } diff --git a/Model/CaseRepository.php b/Model/CaseRepository.php index aefed3b52199b..ea3ea3e67aafd 100644 --- a/Model/CaseRepository.php +++ b/Model/CaseRepository.php @@ -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; @@ -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();