| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class Renderer implements RendererContract |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var \Zapheus\Renderer\RendererInterface |
||
| 20 | */ |
||
| 21 | protected $zapheus; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string[] $paths |
||
| 25 | */ |
||
| 26 | 27 | public function __construct($paths) |
|
| 27 | { |
||
| 28 | 27 | $this->zapheus = new ZapheusRenderer($paths); |
|
| 29 | 27 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Renders a file from a specified template. |
||
| 33 | * |
||
| 34 | * @param string $name |
||
| 35 | * @param array $data |
||
| 36 | * @return string |
||
| 37 | * |
||
| 38 | * @throws \InvalidArgumentException |
||
| 39 | */ |
||
| 40 | 6 | public function render($name, $data = array()) |
|
| 43 | } |
||
| 44 | } |
||
| 45 |