class InvokableComponentVariable implements DeferringDisplayableValue, IteratorAggregate (View source)

Properties

protected Closure $callable

The callable instance to resolve the variable value.

Methods

void
__construct(Closure $callable)

Create a new variable instance.

Htmlable|string
resolveDisplayableValue()

Resolve the displayable value that the class is deferring.

getIterator()

Get an interator instance for the variable.

mixed
__get(string $key)

Dynamically proxy attribute access to the variable.

mixed
__call(string $method, array $parameters)

Dynamically proxy method access to the variable.

mixed
__invoke()

Resolve the variable.

mixed
__toString()

Resolve the variable as a string.

Details

void __construct(Closure $callable)

Create a new variable instance.

Parameters

Closure $callable

Return Value

void

Htmlable|string resolveDisplayableValue()

Resolve the displayable value that the class is deferring.

Return Value

Htmlable|string

Traversable getIterator()

Get an interator instance for the variable.

Return Value

Traversable

mixed __get(string $key)

Dynamically proxy attribute access to the variable.

Parameters

string $key

Return Value

mixed

mixed __call(string $method, array $parameters)

Dynamically proxy method access to the variable.

Parameters

string $method
array $parameters

Return Value

mixed

mixed __invoke()

Resolve the variable.

Return Value

mixed

mixed __toString()

Resolve the variable as a string.

Return Value

mixed