| Total Complexity | 4 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | class Renderer |
||
| 27 | { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * HTML adapter |
||
| 31 | */ |
||
| 32 | const HTML = 'html'; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Twig adapter |
||
| 36 | */ |
||
| 37 | const TWIG = 'twig'; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var TemplateRendererInterface |
||
| 41 | */ |
||
| 42 | private $adapter; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param TemplateRendererInterface $adapter |
||
| 46 | */ |
||
| 47 | public function __construct(TemplateRendererInterface $adapter) |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return TemplateRendererInterface |
||
| 54 | */ |
||
| 55 | public function getAdapter(): TemplateRendererInterface |
||
| 56 | { |
||
| 57 | return $this->adapter; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $method |
||
| 62 | * @param array|null $arguments |
||
| 63 | * @return mixed |
||
| 64 | * @throws BaseException |
||
| 65 | */ |
||
| 66 | public function __call(string $method, ?array $arguments) |
||
| 73 | } |
||
| 74 | } |