Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
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 | 5 | public function __construct(array $templates = []) |
|
37 | { |
||
38 | 5 | $this->templates = $templates; |
|
39 | 5 | } |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 1 | public function addLocation(string $location): void |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 4 | public function load(string $template): ?string |
|
67 |