An abstract condition chain.

 Methods

{@inheritdoc}

__clone() 

Create a new condition chain.

__construct(array $conditions, string $conjunction) 

Parameters

$conditions

array

The conditions to initialize the chain with (optional).

$conjunction

string

The conjunction this chain contains (defaults to AND).

{@inheritdoc}

addCondition(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface $condition) 

Parameters

$condition

{@inheritdoc}

addConditions(array $conditions) 

Parameters

$conditions

{@inheritdoc}

clearConditions() 

{@inheritdoc}

getConditions() 

{@inheritdoc}

getConjunction() 

{@inheritdoc}

removeCondition(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface $condition) 

Parameters

$condition

{@inheritdoc}

setConditions(array $conditions) 

Parameters

$conditions

{@inheritdoc}

setConjunction($conjunction) 

Parameters

$conjunction

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException When the conjunction is neither AND nor OR.

 Properties

   

The conjunction mode.

$conjunction : string