\BrickrougeDecorator

Decorates the specified component.

Summary

Methods
Properties
Constants
__construct()
render()
__toString()
No public properties found
No constants found
No protected methods found
$component
N/A
No private methods found
No private properties found
N/A

Properties

$component

$component : mixed

The component to decorate.

Type

mixed

Methods

__construct()

__construct(mixed  $component) 

Initializes the {@link $component} property.

Parameters

mixed $component

render()

render() : mixed

Renders the component.

Returns

mixed —

The component supplied during {@link __construct} is returned as is.

__toString()

__toString() : string

Renders the component into a string.

The component is rendered by calling the \render() method and casting the result into a string. If an exception is raised during this process, the exception is rendered with the \render_exception() function and the rendered exception is returned.

Returns

string