Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BoolExpression.php
Go to the documentation of this file.
1 <?php
7 
9 
16 {
17  const QUERY_CONDITION_MUST = 'must';
18  const QUERY_CONDITION_SHOULD = 'should';
19  const QUERY_CONDITION_NOT = 'not';
20 
26  protected $boost;
27 
33  protected $name;
34 
40  protected $should = [];
41 
47  protected $must = [];
48 
54  protected $mustNot = [];
55 
64  public function __construct($name, $boost, array $must = [], array $should = [], array $not = [])
65  {
66  $this->name = $name;
67  $this->boost = $boost;
68  $this->must = $must;
69  $this->should = $should;
70  $this->mustNot = $not;
71  }
72 
76  public function getType()
77  {
79  }
80 
85  public function getName()
86  {
87  return $this->name;
88  }
89 
93  public function getBoost()
94  {
95  return $this->boost;
96  }
97 
104  public function getShould()
105  {
106  return $this->should;
107  }
108 
115  public function getMust()
116  {
117  return $this->must;
118  }
119 
126  public function getMustNot()
127  {
128  return $this->mustNot;
129  }
130 }
__construct($name, $boost, array $must=[], array $should=[], array $not=[])