HigherOrderCollectionProxy
in package
Tags
Table of Contents
- $collection : Collection
- The collection being operated on.
- $method : string
- The method being proxied.
- __call() : mixed
- Proxy a method call onto the collection items.
- __construct() : void
- Create a new proxy instance.
- __get() : mixed
- Proxy accessing an attribute onto the collection items.
Properties
$collection
The collection being operated on.
protected
Collection
$collection
$method
The method being proxied.
protected
string
$method
Methods
__call()
Proxy a method call onto the collection items.
public
__call(string $method, array<string|int, mixed> $parameters) : mixed
Parameters
- $method : string
- $parameters : array<string|int, mixed>
Return values
mixed —__construct()
Create a new proxy instance.
public
__construct(Collection $collection, string $method) : void
Parameters
- $collection : Collection
- $method : string
Return values
void —__get()
Proxy accessing an attribute onto the collection items.
public
__get(string $key) : mixed
Parameters
- $key : string