Copied!

LogicalAnd

LogicalAnd.php : 31
Extends LogicalAnd
Implements CriterionInterface

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
See
PaymentMethodServiceInterface::findPaymentMethods()

Methods

public__construct()

AbstractCompositeCriterion.php : 16
public __construct(CriterionInterface ...$criteria)

Parameters

Name Type Default value Description
$criteria CriterionInterface - -

publicadd()

AbstractCompositeCriterion.php : 21
public add(CriterionInterface ...$criteria) : void

Parameters

Name Type Default value Description
$criteria CriterionInterface - -

publicgetCriteria()

AbstractCompositeCriterion.php : 47
public final getCriteria() : array<string|int, CriterionInterface>

Return values

array<string|int, CriterionInterface>

publicremove()

AbstractCompositeCriterion.php : 29
public remove(CriterionInterface ...$criteria) : void

Parameters

Name Type Default value Description
$criteria CriterionInterface - -

publicsetCriteria()

AbstractCompositeCriterion.php : 39
public setCriteria(CriterionInterface ...$criteria) : void

Parameters

Name Type Default value Description
$criteria CriterionInterface - -