Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Request.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Framework\Search\Request\BucketInterface as RequestBucketInterface;
11 
19 class Request implements RequestInterface
20 {
24  protected $name;
25 
29  protected $index;
30 
34  protected $buckets;
35 
41  protected $query;
42 
46  protected $from;
47 
51  protected $size;
52 
56  protected $dimensions;
57 
67  public function __construct(
68  $name,
69  $indexName,
71  $from = null,
72  $size = null,
73  array $dimensions = [],
74  array $buckets = []
75  ) {
76  $this->name = $name;
77  $this->index = $indexName;
78  $this->query = $query;
79  $this->from = $from;
80  $this->size = $size;
81  $this->buckets = $buckets;
82  $this->dimensions = $dimensions;
83  }
84 
88  public function getName()
89  {
90  return $this->name;
91  }
92 
96  public function getIndex()
97  {
98  return $this->index;
99  }
100 
104  public function getDimensions()
105  {
106  return $this->dimensions;
107  }
108 
112  public function getAggregation()
113  {
114  return $this->buckets;
115  }
116 
120  public function getQuery()
121  {
122  return $this->query;
123  }
124 
128  public function getFrom()
129  {
130  return $this->from;
131  }
132 
136  public function getSize()
137  {
138  return $this->size;
139  }
140 }
__construct( $name, $indexName, QueryInterface $query, $from=null, $size=null, array $dimensions=[], array $buckets=[])
Definition: Request.php:67