ViewInterface
interface ViewInterface implements HasContextInterface, ResponsableInterface (View source)
Represent and render a view to a string.
Methods
mixed
getContext(string|null $key = null, mixed|null $default = null)
Get context values.
from HasContextInterface
with(string|array $key, mixed $value = null)
Add context values.
from HasContextInterface
ResponseInterface
toResponse()
Convert to Psr\Http\Message\ResponseInterface.
from ResponsableInterface
string
getName()
Get name.
setName(string $name)
Set name.
string
toString()
Render the view to a string.
Details
in HasContextInterface at line 20
mixed
getContext(string|null $key = null, mixed|null $default = null)
Get context values.
in HasContextInterface at line 29
HasContextInterface
with(string|array $key, mixed $value = null)
Add context values.
in ResponsableInterface at line 20
ResponseInterface
toResponse()
Convert to Psr\Http\Message\ResponseInterface.
at line 23
string
getName()
Get name.
at line 31
ViewInterface
setName(string $name)
Set name.
at line 38
string
toString()
Render the view to a string.