class HigherOrderWhenProxy (View source)

Properties

protected mixed $target

The target being conditionally operated on.

protected bool $condition

The condition for proxying.

Methods

void
__construct(mixed $target, bool $condition)

Create a new proxy instance.

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

void __construct(mixed $target, bool $condition)

Create a new proxy instance.

Parameters

mixed $target
bool $condition

Return Value

void

mixed __get(string $key)

Proxy accessing an attribute onto the target.

Parameters

string $key

Return Value

mixed

mixed __call(string $method, array $parameters)

Proxy a method call on the target.

Parameters

string $method
array $parameters

Return Value

mixed