Any

Class. It extends Group and implements Condition.

use Saij\WpAppFramework\Query\Any;

Posts that meet at least one of the conditions: Any::of($a, $b).

Methods

of()

Any::of(Condition ...$conditions): Any

A group that is met if at least one of its conditions is met.

ParameterTypeDefaultDescription
...conditionsConditionAt least one condition, all of the same kind: all on meta fields, all on terms or all on the columns of a table; a group counts as the kind of its conditions.

Returns Any

Throws InvalidArgumentException: Without conditions or with conditions of different kinds.