HighOrderWhenProxy
in package
Table of Contents
Properties
- $condition : bool
- The condition for proxying.
- $hasCondition : bool
- Indicates whether the proxy has a condition.
- $negateConditionOnCapture : bool
- Determine whether the condition should be negated.
- $target : mixed
- The target being conditionally operated on.
Methods
- __call() : mixed
- Proxy a method call on the target.
- __construct() : void
- Create a new proxy instance.
- __get() : mixed
- Proxy accessing an attribute onto the target.
- condition() : $this
- Set the condition on the proxy.
- negateConditionOnCapture() : $this
- Indicate that the condition should be negated.
Properties
$condition
The condition for proxying.
protected
bool
$condition
$hasCondition
Indicates whether the proxy has a condition.
protected
bool
$hasCondition
= false
$negateConditionOnCapture
Determine whether the condition should be negated.
protected
bool
$negateConditionOnCapture
$target
The target being conditionally operated on.
protected
mixed
$target
Methods
__call()
Proxy a method call on the target.
public
__call(string $method, array<string|int, mixed> $parameters) : mixed
Parameters
- $method : string
- $parameters : array<string|int, mixed>
__construct()
Create a new proxy instance.
public
__construct(mixed $target) : void
Parameters
- $target : mixed
__get()
Proxy accessing an attribute onto the target.
public
__get(string $key) : mixed
Parameters
- $key : string
condition()
Set the condition on the proxy.
public
condition(bool $condition) : $this
Parameters
- $condition : bool
Return values
$thisnegateConditionOnCapture()
Indicate that the condition should be negated.
public
negateConditionOnCapture() : $this