| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 51 | public function render(string $blockName = ''): string |
||
| 52 | { |
||
| 53 | if ($blockName === '') { |
||
| 54 | $blockName = $this->blockName; |
||
| 55 | } |
||
| 56 | |||
| 57 | if ($blockName === '') { |
||
| 58 | throw (new \Exception('Block name must be set', - 1)); |
||
| 59 | } |
||
| 60 | |||
| 61 | $content = $this->getTemplate()->getBlock($blockName); |
||
| 62 | |||
| 63 | $this->getTemplate()->compilePageVars($content); |
||
| 64 | |||
| 65 | return $content; |
||
| 66 | } |
||
| 78 |