| Total Complexity | 7 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Renderer |
||
| 13 | { |
||
| 14 | private iterable $hooks; |
||
| 15 | |||
| 16 | public function __construct(iterable $hooks) |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param Environment $env |
||
| 23 | * @param array $context |
||
| 24 | * @param $name |
||
| 25 | * @return string |
||
| 26 | * @throws LoaderError |
||
| 27 | * @throws RuntimeError |
||
| 28 | * @throws SyntaxError |
||
| 29 | */ |
||
| 30 | public function invokeHook(Environment $env, array $context, $name): string |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param TemplateHook $hook |
||
| 52 | * @param mixed $name |
||
| 53 | * @return bool |
||
| 54 | */ |
||
| 55 | private function targetMatches(TemplateHook $hook, mixed $name): bool |
||
| 62 | } |
||
| 63 | |||
| 64 | public function getMatchingHooks($name): iterable |
||
| 72 | } |