class Illuminate / Support / HigherOrderCollectionProxy
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

HigherOrderCollectionProxy

Properties

protected

$collection Illuminate\...\Enumerable

The collection being operated on.

Default: null
protected

$method string

The method being proxied.

Default: null

Methods

public

__construct ( Illuminate\...\Enumerable $collection , $method ) : void

Create a new proxy instance.

Parameters

  • $collection Illuminate\...\Enumerable
  • $method string
public

__get ( $key ) : mixed

Proxy accessing an attribute onto the collection items.

Parameters

  • $key string
public

__call ( $method , $parameters ) : mixed

Proxy a method call onto the collection items.

Parameters

  • $method string
  • $parameters array