Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | final class Memoize implements TemplateResolver |
||
22 | { |
||
23 | /** |
||
24 | * @var array<string, string|null> |
||
25 | */ |
||
26 | private array $cache = []; |
||
27 | |||
28 | public function __construct( |
||
29 | private readonly TemplateResolver $inner |
||
30 | ) { |
||
31 | } |
||
32 | |||
33 | public function resolve(string $name, array $extensions, array &$tried = []): ?string |
||
38 | } |
||
39 | } |
||
40 |