1 | <?php |
||
18 | final class DynamicStringLoader implements ILoader |
||
19 | { |
||
20 | /** |
||
21 | * @var array [name => content] |
||
22 | */ |
||
23 | private $templates = []; |
||
24 | |||
25 | 7 | public function addTemplate(string $name, string $content) |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 6 | public function getContent($name) : string |
|
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | 1 | public function isExpired($name, $time) : bool |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 1 | public function getReferredName($name, $referringName) : string |
|
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | 5 | public function getUniqueId($name) |
|
70 | } |
||
71 |