| 1 | <?php |
||
| 18 | class StringLoader implements LoaderInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | public function getCacheKey(string $name): string |
||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public function isFresh(string $name, int $time): bool |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Returns the source context for a given template logical name. |
||
| 37 | * |
||
| 38 | * @param string $name The template logical name |
||
| 39 | * |
||
| 40 | * @return Source |
||
| 41 | */ |
||
| 42 | public function getSourceContext($name): Source |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Check if we have the source code of a template, given its name. |
||
| 49 | * |
||
| 50 | * @param string $name The name of the template to check if we can load |
||
| 51 | * |
||
| 52 | * @return bool If the template source code is handled by this loader or not |
||
| 53 | */ |
||
| 54 | public function exists($name) |
||
| 58 | } |
||
| 59 |