Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Api
Search
SearchResult.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Api\Search
;
7
8
use
Magento\Framework\Api\AbstractSimpleObject
;
9
use
Magento\Framework\Api\SearchCriteriaInterface
as BaseSearchCriteriaInterface;
10
use
Magento\Framework\Api\Search\SearchCriteriaInterface
;
11
use
Magento\Framework\Api\Search\SearchResultInterface
;
12
13
class
SearchResult
extends
AbstractSimpleObject
implements
SearchResultInterface
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
}
Magento\Framework\Api\Search\SearchResult\getItems
getItems()
Definition:
SearchResult.php:34
Magento\Framework\Api\SearchCriteriaInterface
Definition:
SearchCriteriaInterface.php:15
Magento\Framework\Api\Search\SearchResult\setTotalCount
setTotalCount($totalCount)
Definition:
SearchResult.php:84
Magento\Framework\Api\AbstractSimpleObject
Definition:
AbstractSimpleObject.php:12
Magento\Framework\Api\Search\SearchResult
Definition:
SearchResult.php:13
$searchCriteria
$searchCriteria
Definition:
order_rollback.php:16
Magento\Framework\Api\Search\SearchResult\setSearchCriteria
setSearchCriteria(BaseSearchCriteriaInterface $searchCriteria=null)
Definition:
SearchResult.php:63
Magento\Framework\Api\Search\SearchResultInterface
Definition:
SearchResultInterface.php:16
Magento\Framework\Api\AbstractSimpleObject\_get
_get($key)
Definition:
AbstractSimpleObject.php:35
Magento\Framework\Api\Search\SearchResult\getSearchCriteria
getSearchCriteria()
Definition:
SearchResult.php:52
Magento\Framework\Api\Search
Definition:
AggregationInterface.php:6
Magento\Framework\Api\Search\SearchCriteriaInterface
Definition:
SearchCriteriaInterface.php:17
Magento\Framework\Api\Search\SearchResult\setItems
setItems(array $items=null)
Definition:
SearchResult.php:42
Magento\Framework\Api\Search\SearchResult\setAggregations
setAggregations($aggregations)
Definition:
SearchResult.php:26
Magento\Framework\Api\AbstractSimpleObject\setData
setData($key, $value)
Definition:
AbstractSimpleObject.php:47
Magento\Framework\Api\Search\SearchResult\getAggregations
getAggregations()
Definition:
SearchResult.php:18
Magento\Framework\Api\Search\SearchResult\getTotalCount
getTotalCount()
Definition:
SearchResult.php:73
$items
$items
Definition:
order_rollback.php:21