12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Quote\Api\Data;
- /**
- * Interface CartSearchResultsInterface
- * @api
- * @since 100.0.2
- */
- interface CartSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface
- {
- /**#@+
- * Constants defined for keys of array, makes typos less likely
- */
- const KEY_ITEMS = 'items';
- const KEY_SEARCH_CRITERIA = 'search_criteria';
- const KEY_TOTAL_COUNT = 'total_count';
- /**#@-*/
- /**
- * Get carts list.
- *
- * @return \Magento\Quote\Api\Data\CartInterface[]
- */
- public function getItems();
- /**
- * Set carts list.
- *
- * @param \Magento\Quote\Api\Data\CartInterface[] $items
- * @return $this
- */
- public function setItems(array $items);
- /**
- * Get search criteria.
- *
- * @return \Magento\Framework\Api\SearchCriteriaInterface
- */
- public function getSearchCriteria();
- /**
- * Set search criteria.
- *
- * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
- * @return $this
- */
- public function setSearchCriteria(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
- /**
- * Get total count.
- *
- * @return int
- */
- public function getTotalCount();
- /**
- * Set total count.
- *
- * @param int $totalCount
- * @return $this
- */
- public function setTotalCount($totalCount);
- }
|