Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
matchExact example
return
false;
}
if
(
!
$customer
=
$scope
->
getSalesChannelContext
(
)
->
getCustomer
(
)
)
{
return
RuleComparison::
isNegativeOperator
(
$this
->operator
)
;
}
if
(
$this
->email &&
mb_strpos
(
$this
->email, '*'
)
!== false
)
{
return
$this
->
matchPartially
(
$customer
)
;
}
return
$this
->
matchExact
(
$customer
)
;
}
public
function
getConstraints
(
)
: array
{
return
[
'operator' => RuleConstraints::
stringOperators
(
false
)
,
'email' => RuleConstraints::
string
(
)
,
]
;
}
public
function
getConfig
(
)
: RuleConfig
{