Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

Price LogicalOr Criterion

The LogicalOr Search Criterion matches prices if at least one of the provided Criteria matches.

Arguments

  • criterion - a set of Criteria combined by the logical operator

Example

PHP

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
use Ibexa\Contracts\ProductCatalog\Values\CurrencyInterface;
use Ibexa\Contracts\ProductCatalog\Values\Price\PriceQuery;
use Ibexa\Contracts\ProductCatalog\Values\Price\Query\Criterion\Currency;
use Ibexa\Contracts\ProductCatalog\Values\Price\Query\Criterion\LogicalOr;

/**
 * @var CurrencyInterface $currencyUSD
 * @var CurrencyInterface $currencyEUR
 */
$query = new PriceQuery(
    new LogicalOr(
        new Currency($currencyUSD),
        new Currency($currencyEUR)
    )
);