Logical AND criterion.
The following example requests payment method enabled
- and having an identifier equals to 'paypal', 'payu', or 'stripe':
$query = new PaymentMethodQuery();
$query->setQuery(new LogicalAnd([
new Enabled(),
new Identifier(['paypal', 'payu', 'stripe']),
]));
$paymentMethods = $paymentMethodService->findPaymentMethods($query);
Tags
Methods¶
__construct() ¶
AbstractCompositeCriterion.php
:
16
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$criteria | CriterionInterface | - | - |
add() ¶
AbstractCompositeCriterion.php
:
21
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$criteria | CriterionInterface | - | - |
getCriteria() ¶
AbstractCompositeCriterion.php
:
47
|
|
Return values
array<string|int, CriterionInterface>
remove() ¶
AbstractCompositeCriterion.php
:
29
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$criteria | CriterionInterface | - | - |
setCriteria() ¶
AbstractCompositeCriterion.php
:
39
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$criteria | CriterionInterface | - | - |