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
Search
Response
QueryResponse.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Search\Response
;
7
8
use
Magento\Framework\Api\Search\AggregationInterface
;
9
use
Magento\Framework\Api\Search\Document
;
10
use
Magento\Framework\Search\ResponseInterface
;
11
17
class
QueryResponse
implements
ResponseInterface
18
{
24
protected
$documents
;
25
31
protected
$aggregations
;
32
37
public
function
__construct
(array
$documents
,
AggregationInterface
$aggregations
)
38
{
39
$this->documents =
$documents
;
40
$this->aggregations =
$aggregations
;
41
}
42
47
public
function
count
()
48
{
49
return
count
($this->documents);
50
}
51
57
public
function
getIterator
()
58
{
59
return
new \ArrayIterator($this->documents);
60
}
61
65
public
function
getAggregations
()
66
{
67
return
$this->aggregations
;
68
}
69
}
Magento\Framework\Search\Response\QueryResponse\getIterator
getIterator()
Definition:
QueryResponse.php:57
Magento\Framework\Search\Response\QueryResponse\$aggregations
$aggregations
Definition:
QueryResponse.php:31
Magento\Framework\Search\Response\QueryResponse\__construct
__construct(array $documents, AggregationInterface $aggregations)
Definition:
QueryResponse.php:37
Magento\Framework\Search\Response\QueryResponse\getAggregations
getAggregations()
Definition:
QueryResponse.php:65
Magento\Framework\Search\ResponseInterface
Definition:
ResponseInterface.php:11
Magento\Framework\Search\Response\QueryResponse\$documents
$documents
Definition:
QueryResponse.php:24
Magento\Framework\Api\Search\AggregationInterface
Definition:
AggregationInterface.php:11
Magento\Framework\Search\Response\QueryResponse\count
count()
Definition:
QueryResponse.php:47
Magento\Framework\Search\Response
Magento\Framework\Api\Search\Document
Definition:
Document.php:14
Magento\Framework\Search\Response\QueryResponse
Definition:
QueryResponse.php:17