class ConditionFactory (View source)

Check against the current url

Constants

NEGATE_CONDITION_PREFIX

Methods

__construct(array $condition_types)

Constructor.

make(string|array|Closure $options)

Create a new condition.

condition(string|array|Closure|ConditionInterface $value)

Ensure value is a condition.

merge(string|array|Closure|ConditionInterface|null $old, string|array|Closure|ConditionInterface|null $new)

Merge group condition attribute.

Details

__construct(array $condition_types)

Constructor.

Parameters

array $condition_types string> $condition_types

ConditionInterface make(string|array|Closure $options)

Create a new condition.

Parameters

string|array|Closure $options

Return Value

ConditionInterface

ConditionInterface condition(string|array|Closure|ConditionInterface $value)

Ensure value is a condition.

Parameters

string|array|Closure|ConditionInterface $value

Return Value

ConditionInterface

ConditionInterface|null merge(string|array|Closure|ConditionInterface|null $old, string|array|Closure|ConditionInterface|null $new)

Merge group condition attribute.

Parameters

string|array|Closure|ConditionInterface|null $old
string|array|Closure|ConditionInterface|null $new

Return Value

ConditionInterface|null

ConditionInterface mergeConditions(ConditionInterface $old, ConditionInterface $new)

Merge condition instances.

Parameters

ConditionInterface $old
ConditionInterface $new

Return Value

ConditionInterface