tarsana /
command
| 1 | <?php namespace Tarsana\Command\Interfaces\Template; |
||
| 2 | |||
| 3 | use Tarsana\IO\Interfaces\Filesystem as FilesystemInterface; |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Templates Loader Interface |
||
| 7 | */ |
||
| 8 | interface TemplateLoaderInterface { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Initialize the loader. |
||
| 12 | * |
||
| 13 | * @param string $templatesPath |
||
| 14 | * @param string $cachePath |
||
| 15 | * @return self |
||
| 16 | */ |
||
| 17 | public function init(string $templatesPath, string $cachePath = null) : TemplateLoaderInterface; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Loads a template. |
||
| 21 | * |
||
| 22 | * @param string $name |
||
| 23 | * @return Tarsana\Command\Interfaces\Template\TemplateInterface |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 24 | */ |
||
| 25 | public function load(string $name) : TemplateInterface; |
||
| 26 | } |
||
| 27 |