Skip to content

Commit eca5237

Browse files
authored
MAGETWO-67344: Solve issues with API #9124
2 parents 273b8f9 + a21dec1 commit eca5237

36 files changed

+66
-66
lines changed

app/code/Magento/Catalog/Api/Data/ProductAttributeMediaGalleryEntryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function getContent();
138138
/**
139139
* Set media gallery content
140140
*
141-
* @param $content \Magento\Framework\Api\Data\ImageContentInterface
141+
* @param \Magento\Framework\Api\Data\ImageContentInterface $content
142142
* @return $this
143143
*/
144144
public function setContent($content);

app/code/Magento/ConfigurableProduct/Api/ConfigurableProductManagementInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function generateVariation(\Magento\Catalog\Api\Data\ProductInterface $pr
2424
/**
2525
* Provide the number of product count
2626
*
27-
* @param null|int $status
27+
* @param int|null $status
2828
* @return int
2929
*/
3030
public function getCount($status = null);

app/code/Magento/Quote/Api/CartRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ public function get($cartId);
2828
* which call to use to get detailed information about all attributes for an object.
2929
*
3030
*
31-
* @param \Magento\Framework\Api\SearchCriteria $searchCriteria
31+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
3232
* @return \Magento\Quote\Api\Data\CartSearchResultsInterface
3333
*/
34-
public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria);
34+
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
3535

3636
/**
3737
* Get quote by customer Id

app/code/Magento/Quote/Model/QuoteRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ protected function getQuoteCollection()
223223
/**
224224
* {@inheritdoc}
225225
*/
226-
public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria)
226+
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria)
227227
{
228228
$this->quoteCollection = $this->getQuoteCollection();
229229
/** @var \Magento\Quote\Api\Data\CartSearchResultsInterface $searchData */

app/code/Magento/Sales/Api/CreditmemoCommentRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public function get($id);
3232
*
3333
* Returns a credit memo comment search results interface.
3434
*
35-
* @param \Magento\Framework\Api\SearchCriteria $searchCriteria The search criteria.
35+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria The search criteria.
3636
* @return \Magento\Sales\Api\Data\CreditmemoCommentSearchResultInterface Credit memo comment search results interface.
3737
*/
38-
public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria);
38+
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
3939

4040
/**
4141
* Deletes a specified credit memo comment.

app/code/Magento/Sales/Api/CreditmemoItemRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public function get($id);
2727
/**
2828
* Lists credit memo items that match specified search criteria.
2929
*
30-
* @param \Magento\Framework\Api\SearchCriteria $searchCriteria The search criteria.
30+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria The search criteria.
3131
* @return \Magento\Sales\Api\Data\CreditmemoItemSearchResultInterface Credit memo item search results interface.
3232
*/
33-
public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria);
33+
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
3434

3535
/**
3636
* Deletes a specified credit memo item.

app/code/Magento/Sales/Api/CreditmemoRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ interface CreditmemoRepositoryInterface
2222
* included. See http://devdocs.magento.com/codelinks/attributes.html#CreditmemoRepositoryInterface to
2323
* determine which call to use to get detailed information about all attributes for an object.
2424
*
25-
* @param \Magento\Framework\Api\SearchCriteria $searchCriteria The search criteria.
25+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria The search criteria.
2626
* @return \Magento\Sales\Api\Data\CreditmemoSearchResultInterface Credit memo search result interface.
2727
*/
28-
public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria);
28+
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
2929

3030
/**
3131
* Loads a specified credit memo.

app/code/Magento/Sales/Api/InvoiceCommentRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ interface InvoiceCommentRepositoryInterface
1717
/**
1818
* Lists invoice comments that match specified search criteria.
1919
*
20-
* @param \Magento\Framework\Api\SearchCriteria $searchCriteria The search criteria.
20+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria The search criteria.
2121
* @return \Magento\Sales\Api\Data\InvoiceCommentSearchResultInterface Invoice search result interface.
2222
*/
23-
public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria);
23+
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
2424

2525
/**
2626
* Loads a specified invoice comment.

app/code/Magento/Sales/Api/InvoiceItemRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ interface InvoiceItemRepositoryInterface
1616
/**
1717
* Lists the invoice items that match specified search criteria.
1818
*
19-
* @param \Magento\Framework\Api\SearchCriteria $searchCriteria
19+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
2020
* @return \Magento\Sales\Api\Data\InvoiceItemSearchResultInterface
2121
*/
22-
public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria);
22+
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
2323

2424
/**
2525
* Loads a specified invoice item.

app/code/Magento/Sales/Api/InvoiceRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ interface InvoiceRepositoryInterface
2020
* included. See http://devdocs.magento.com/codelinks/attributes.html#InvoiceRepositoryInterface to
2121
* determine which call to use to get detailed information about all attributes for an object.
2222
*
23-
* @param \Magento\Framework\Api\SearchCriteria $searchCriteria The search criteria.
23+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria The search criteria.
2424
* @return \Magento\Sales\Api\Data\InvoiceSearchResultInterface Invoice search result interface.
2525
*/
26-
public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria);
26+
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
2727

2828
/**
2929
* Return Invoice object

0 commit comments

Comments
 (0)