Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function renderTemplate(Plates\Template $template, Plates\RenderTemplate $rt = null) { |
||
16 | if (!isset($this->mocks[$template->name])) { |
||
17 | throw new Plates\Exception\RenderTemplateException('Mock include does not exist for name: ' . $template->name); |
||
18 | } |
||
19 | |||
20 | return $this->mocks[$template->name]($template); |
||
21 | } |
||
22 | } |
||
23 |