class Illuminate / View / InvokableComponentVariable
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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.