| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 12 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 67 | protected function template(): string  | 
            ||
| 68 |     { | 
            ||
| 69 |         if (empty($this->template)) { | 
            ||
| 70 | throw BlockException::forEmptyTemplate();  | 
            ||
| 71 | }  | 
            ||
| 72 | |||
| 73 | $template = locate_template($this->template);  | 
            ||
| 74 |         if ($template === '') { | 
            ||
| 75 | throw BlockException::forNotFoundTemplate($this->template);  | 
            ||
| 76 | }  | 
            ||
| 77 | |||
| 78 | return $template;  | 
            ||
| 79 | }  | 
            ||
| 81 |