Menu

## HighOrderWhenProxy
in package

HighOrderWhenProxy.php : 5

### 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

HighOrderWhenProxy.php : 19

The condition for proxying.

`protected bool $condition`

#### $hasCondition

HighOrderWhenProxy.php : 26

Indicates whether the proxy has a condition.

`protected bool $hasCondition = false`

#### $negateConditionOnCapture

HighOrderWhenProxy.php : 33

Determine whether the condition should be negated.

`protected bool $negateConditionOnCapture`

#### $target

HighOrderWhenProxy.php : 12

The target being conditionally operated on.

`protected mixed $target`

### Methods

#### __call()

HighOrderWhenProxy.php : 97

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()

HighOrderWhenProxy.php : 41

Create a new proxy instance.

`public __construct(mixed $target) : void`

##### Parameters

$target : mixed

#### __get()

HighOrderWhenProxy.php : 77

Proxy accessing an attribute onto the target.

`public __get(string $key) : mixed`

##### Parameters

$key : string

#### condition()

HighOrderWhenProxy.php : 52

Set the condition on the proxy.

`public condition(bool $condition) : $this`

##### Parameters

$condition : bool

##### Return values

$this

#### negateConditionOnCapture()

HighOrderWhenProxy.php : 64

Indicate that the condition should be negated.

`public negateConditionOnCapture() : $this`

##### Return values

$this

## Search results