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