Copied!

LogicalOr

LogicalOr.php : 30
Extends LogicalOr
Implements CriterionInterface

Logical OR criterion.

The following example requests payments created on 2021 1st or 2nd January:

$query = new PaymentQuery();
$query->setQuery(new LogicalOr([
    new CreatedAt(new DateTimeImmutable('2021-01-01')),
    new CreatedAt(new DateTimeImmutable('2021-01-02')),
]));

$payments = $paymentService->findPayments($query);
Tags
See
PaymentServiceInterface::findPayments()

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 - -