class Illuminate / Support / HigherOrderWhenProxy
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

HigherOrderWhenProxy

Properties

protected

$target mixed

The target being conditionally operated on.

Default: null
protected

$condition bool

The condition for proxying.

Default: null
protected

$hasCondition bool

Indicates whether the proxy has a condition.

Default: false
protected

$negateConditionOnCapture bool

Determine whether the condition should be negated.

Default: null

Methods

public

__construct ( $target ) : void

Create a new proxy instance.

Parameters

  • $target mixed
public

condition ( $condition ) : $this

Set the condition on the proxy.

Parameters

  • $condition bool
public

negateConditionOnCapture ( ) : $this

Indicate that the condition should be negated.

public

__get ( $key ) : mixed

Proxy accessing an attribute onto the target.

Parameters

  • $key string
public

__call ( $method , $parameters ) : mixed

Proxy a method call on the target.

Parameters

  • $method string
  • $parameters array