1 | <?php |
||
11 | final class RendererFacade |
||
12 | { |
||
13 | /** |
||
14 | * @var RendererInterface |
||
15 | */ |
||
16 | private static $renderer; |
||
17 | |||
18 | public static function init(RendererInterface $renderer): void |
||
22 | |||
23 | /** |
||
24 | * Renders the object as a HTML string, to the output. |
||
25 | * |
||
26 | * @param object $object The object to render |
||
27 | * @param string|null $context A string representing a context that might be used to choose another renderer for the object. |
||
28 | */ |
||
29 | public static function render($object, string $context = null): void |
||
33 | } |
||
34 |