class HigherOrderWhenProxy

Properties

protected bool $condition

The condition for proxying.

protected bool $hasCondition

Indicates whether the proxy has a condition.

protected bool $negateConditionOnCapture

Determine whether the condition should be negated.

Methods

__construct(mixed $target)

Create a new proxy instance.

condition(mixed $condition)

Set the condition on the proxy.

negateConditionOnCapture()

Indicate that the condition should be negated.

mixed
__get(string $key)

Proxy accessing an attribute onto the target.

mixed
__call(string $method, array $parameters)

Proxy a method call on the target.

Details

at line 27
__construct(mixed $target)

Create a new proxy instance.

Parameters

mixed $target

at line 35
HigherOrderWhenProxy condition(mixed $condition)

Set the condition on the proxy.

Parameters

mixed $condition

Return Value

HigherOrderWhenProxy

at line 45
HigherOrderWhenProxy negateConditionOnCapture()

Indicate that the condition should be negated.

Return Value

HigherOrderWhenProxy

at line 55
mixed __get(string $key)

Proxy accessing an attribute onto the target.

Parameters

string $key

Return Value

mixed

at line 71
mixed __call(string $method, array $parameters)

Proxy a method call on the target.

Parameters

string $method
array $parameters

Return Value

mixed