Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function getContent() |
||
39 | { |
||
40 | $templateReference = $this->getTemplate(); |
||
41 | $fileResource = $this->loader->load($templateReference); |
||
42 | |||
43 | if (!$fileResource) { |
||
44 | throw new \InvalidArgumentException(sprintf('Unable to find template "%s".', $templateReference)); |
||
45 | } |
||
46 | |||
47 | return $fileResource->getContent(); |
||
48 | } |
||
49 | |||
64 |