Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SearchResult.php
Go to the documentation of this file.
1 <?php
7 
9 use Magento\Framework\Api\SearchCriteriaInterface as BaseSearchCriteriaInterface;
12 
14 {
18  public function getAggregations()
19  {
20  return $this->_get(self::AGGREGATIONS);
21  }
22 
26  public function setAggregations($aggregations)
27  {
28  return $this->setData(self::AGGREGATIONS, $aggregations);
29  }
30 
34  public function getItems()
35  {
36  return $this->_get(self::ITEMS);
37  }
38 
42  public function setItems(array $items = null)
43  {
44  return $this->setData(self::ITEMS, $items);
45  }
46 
52  public function getSearchCriteria()
53  {
54  return $this->_get(self::SEARCH_CRITERIA);
55  }
56 
63  public function setSearchCriteria(BaseSearchCriteriaInterface $searchCriteria = null)
64  {
65  return $this->setData(self::SEARCH_CRITERIA, $searchCriteria);
66  }
67 
73  public function getTotalCount()
74  {
75  return $this->_get(self::TOTAL_COUNT);
76  }
77 
84  public function setTotalCount($totalCount)
85  {
86  return $this->setData(self::TOTAL_COUNT, $totalCount);
87  }
88 }
$searchCriteria
setSearchCriteria(BaseSearchCriteriaInterface $searchCriteria=null)
$items