| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | private function loadTemplateContent(): void |
||
| 46 | { |
||
| 47 | if (!is_file($this->templatePath)) { |
||
| 48 | throw new TemplateException('There is no template with given name'); |
||
| 49 | } |
||
| 50 | $content = file_get_contents($this->templatePath); |
||
| 51 | if ($content === false) { |
||
| 52 | throw new TemplateException('Cannot get content of template'); |
||
| 53 | } |
||
| 54 | $this->content = $content; |
||
| 55 | } |
||
| 62 | } |