Copied!

LogicalAnd

LogicalAnd.php : 30
Extends LogicalAnd
Implements CriterionInterface

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