An abstract condition chain.
__clone()
__construct(array $conditions, string $conjunction)
array
The conditions to initialize the chain with (optional).
string
The conjunction this chain contains (defaults to AND).
addCondition(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface $condition)
addConditions(array $conditions)
clearConditions()
getConditions()
getConjunction()
removeCondition(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface $condition)
setConditions(array $conditions)
setConjunction($conjunction)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When the conjunction is neither AND nor OR. |
---|
$conditions : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface[]
$conjunction : string