Logical AND criterion.
The following example requests payments created in US dollars on 2021 1st January:
$query = new PaymentQuery();
$query->setQuery(new LogicalAnd([
new CreatedAt(new DateTimeImmutable('2021-01-01')),
new Currency('USD'),
]));
$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 | - | - |