class HigherOrderWhenProxy (View source)
protected Enumerable | $collection | The collection being operated on. | |
protected bool | $condition | The condition for proxying. |
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. |
Create a new proxy instance.
Proxy accessing an attribute onto the collection.
Proxy a method call onto the collection.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Support/HigherOrderWhenProxy.html