| 1 | <?php |
||
| 9 | class FileResource implements ResourceInterface |
||
| 10 | { |
||
| 11 | protected $loader; |
||
| 12 | |||
| 13 | protected $path; |
||
| 14 | |||
| 15 | protected $baseDir; |
||
| 16 | |||
| 17 | protected $template; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Constructor. |
||
| 21 | * |
||
| 22 | * @param LoaderInterface $loader The templating loader |
||
| 23 | * @param string $baseDir The directory |
||
| 24 | * @param string $path The file path |
||
| 25 | */ |
||
| 26 | public function __construct(LoaderInterface $loader, $baseDir, $path) |
||
| 32 | |||
| 33 | public function isFresh($timestamp) |
||
| 37 | |||
| 38 | public function getContent() |
||
| 49 | |||
| 50 | public function __toString() |
||
| 54 | |||
| 55 | protected function getTemplate() |
||
| 63 | } |
||
| 64 |