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