class EntityConditionGroup (View source)

internal  JSON:API maintains no PHP API since its API is the HTTP API. This class may change at any time and this will break any dependencies on it.
 

A condition group for the EntityQuery.

Properties

static protected array $allowedConjunctions

The AND conjunction value.

protected string $conjunction

The conjunction.

protected EntityCondition[] $members

The members of the condition group.

Methods

__construct(string $conjunction, array $members = [])

Constructs a new condition group object.

string
conjunction()

The condition group conjunction.

members()

The members which belong to the condition group.

Details

__construct(string $conjunction, array $members = [])

Constructs a new condition group object.

Parameters

string $conjunction

The group conjunction to use.

array $members

(optional) The group conjunction to use.

string conjunction()

The condition group conjunction.

Return Value

string

The condition group conjunction.

EntityCondition[] members()

The members which belong to the condition group.

Return Value

EntityCondition[]

The member conditions of this condition group.