Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | class ArrayStorage implements StorageInterface |
||
29 | { |
||
30 | /** @var string[] */ |
||
31 | protected $templates = []; |
||
32 | |||
33 | /** |
||
34 | * @param string[] $templates An array of templates |
||
35 | */ |
||
36 | public function __construct(array $templates = []) |
||
37 | { |
||
38 | $this->templates = $templates; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function addLocation(string $location): void |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function load(string $template): ?string |
||
57 |