Pionia Core

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

$hasCondition

Indicates whether the proxy has a condition.

protected bool $hasCondition = false

$negateConditionOnCapture

Determine whether the condition should be negated.

protected bool $negateConditionOnCapture

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
$this

negateConditionOnCapture()

Indicate that the condition should be negated.

public negateConditionOnCapture() : $this
Return values
$this

        
On this page

Search results