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
Request
Filter
BoolExpression.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Search\Request\Filter
;
7
8
use
Magento\Framework\Search\Request\FilterInterface
;
9
15
class
BoolExpression
implements
FilterInterface
16
{
20
protected
$name
;
21
27
protected
$must
= [];
28
34
protected
$should
= [];
35
41
protected
$mustNot
= [];
42
50
public
function
__construct
(
$name
, array
$must
= [], array
$should
= [], array $not = [])
51
{
52
$this->
name
=
$name
;
53
$this->must =
$must
;
54
$this->should =
$should
;
55
$this->mustNot = $not;
56
}
57
61
public
function
getType
()
62
{
63
return
FilterInterface::TYPE_BOOL
;
64
}
65
70
public
function
getName
()
71
{
72
return
$this->name
;
73
}
74
81
public
function
getMust
()
82
{
83
return
$this->must
;
84
}
85
92
public
function
getShould
()
93
{
94
return
$this->should
;
95
}
96
103
public
function
getMustNot
()
104
{
105
return
$this->mustNot
;
106
}
107
}
Magento\Framework\Search\Request\Filter\BoolExpression\getMust
getMust()
Definition:
BoolExpression.php:81
Magento\Framework\Search\Request\Filter\BoolExpression\getMustNot
getMustNot()
Definition:
BoolExpression.php:103
Magento\Framework\Search\Request\Filter\BoolExpression\$should
$should
Definition:
BoolExpression.php:34
Magento\Framework\Search\Request\Filter\BoolExpression\__construct
__construct($name, array $must=[], array $should=[], array $not=[])
Definition:
BoolExpression.php:50
Magento\Framework\Search\Request\FilterInterface\TYPE_BOOL
const TYPE_BOOL
Definition:
FilterInterface.php:21
Magento\Framework\Search\Request\Filter\BoolExpression\$must
$must
Definition:
BoolExpression.php:27
Magento\Framework\Search\Request\Filter\BoolExpression\getName
getName()
Definition:
BoolExpression.php:70
name
Magento\Framework\Search\Request\Filter
Definition:
BoolExpression.php:6
Magento\Framework\Search\Request\Filter\BoolExpression\$name
$name
Definition:
BoolExpression.php:20
Magento\Framework\Search\Request\Filter\BoolExpression\$mustNot
$mustNot
Definition:
BoolExpression.php:41
Magento\Framework\Search\Request\Filter\BoolExpression\getShould
getShould()
Definition:
BoolExpression.php:92
Magento\Framework\Search\Request\FilterInterface
Definition:
FilterInterface.php:14
Magento\Framework\Search\Request\Filter\BoolExpression\getType
getType()
Definition:
BoolExpression.php:61
Magento\Framework\Search\Request\Filter\BoolExpression
Definition:
BoolExpression.php:15