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

InvokableComponentVariable

Implements

Properties

protected

$callable Closure

The callable instance to resolve the variable value.

Default: null

Methods

public

__construct ( Closure $callable ) : void

Create a new variable instance.

Parameters

public

resolveDisplayableValue ( ) : Htmlable |string

Resolve the displayable value that the class is deferring.

public

getIterator ( ) : ArrayIterator

Get an interator instance for the variable.

public

__get ( $key ) : mixed

Dynamically proxy attribute access to the variable.

Parameters

  • $key string
public

__call ( $method , $parameters ) : mixed

Dynamically proxy method access to the variable.

Parameters

  • $method string
  • $parameters array
public

__invoke ( ) : mixed

Resolve the variable.

public

__toString ( ) : mixed

Resolve the variable as a string.