HigherOrderWhenProxy
class HigherOrderWhenProxy (View source)
Properties
| protected mixed | $target | The target being conditionally operated on. |
|
| protected bool | $condition | The condition for proxying. |
|
| protected bool | $hasCondition | Indicates whether the proxy has a condition. |
|
| protected bool | $negateConditionOnCapture | Determine whether the condition should be negated. |
Methods
Create a new proxy instance.
Set the condition on the proxy.
Indicate that the condition should be negated.
Proxy accessing an attribute onto the target.
Proxy a method call on the target.
Details
void
__construct(mixed $target)
Create a new proxy instance.
$this
condition(bool $condition)
Set the condition on the proxy.
$this
negateConditionOnCapture()
Indicate that the condition should be negated.
mixed
__get(string $key)
Proxy accessing an attribute onto the target.
mixed
__call(string $method, array $parameters)
Proxy a method call on the target.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.