class Illuminate / Support / HigherOrderWhenProxy
You are viewing an older version of the documentation. For the latest, please visit master documentation.

HigherOrderWhenProxy

Properties

protected

$collection Enumerable

The collection being operated on.

Default: null
protected

$condition bool

The condition for proxying.

Default: null

Methods

public

__construct ( Enumerable $collection , $condition ) : void

Create a new proxy instance.

Parameters

public

__get ( $key ) : mixed

Proxy accessing an attribute onto the collection.

Parameters

  • $key string
public

__call ( $method , $parameters ) : mixed

Proxy a method call onto the collection.

Parameters

  • $method string
  • $parameters array