Copied!

LogicalOr

LogicalOr.php : 31
Extends LogicalOr
Implements CriterionInterface

Logical OR criterion.

The following requests payment methods with ID equals to 42, 43 or 45, or an identifier equals to 'paypal', 'payu', or 'stripe':

$query = new PaymentMethodQuery();
$query->setQuery(new LogicalOr([
    new Id([42, 43, 45]),
    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 - -