| Total Complexity | 8 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Template |
||
| 11 | { |
||
| 12 | |||
| 13 | private string $templatePath; |
||
| 14 | private ?string $content = null; |
||
| 15 | |||
| 16 | public function __construct(string $templatePath) |
||
| 17 | { |
||
| 18 | $this->templatePath = $templatePath; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | public function getTemplatePath(): string |
||
| 25 | { |
||
| 26 | return $this->templatePath; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | * @throws TemplateException |
||
| 32 | */ |
||
| 33 | public function getTemplateContent(): string |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return void |
||
| 43 | * @throws TemplateException |
||
| 44 | */ |
||
| 45 | private function loadTemplateContent(): void |
||
| 55 | } |
||
| 56 | |||
| 57 | public static function resolveTemplatePath(string $directory, string $name): string |
||
| 62 | } |