$component : mixed
The component to decorate.
__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.