class HigherOrderWhenProxy (View source)

Properties

protected Enumerable $collection The collection being operated on.
protected bool $condition The condition for proxying.

Methods

void
__construct(Enumerable $collection, bool $condition)

Create a new proxy instance.

mixed
__get(string $key)

Proxy accessing an attribute onto the collection.

mixed
__call(string $method, array $parameters)

Proxy a method call onto the collection.

Details

void __construct(Enumerable $collection, bool $condition)

Create a new proxy instance.

Parameters

Enumerable $collection
bool $condition

Return Value

void

mixed __get(string $key)

Proxy accessing an attribute onto the collection.

Parameters

string $key

Return Value

mixed

mixed __call(string $method, array $parameters)

Proxy a method call onto the collection.

Parameters

string $method
array $parameters

Return Value

mixed