1 | <?php |
||
20 | class IndexTemplateManager |
||
21 | { |
||
22 | /** |
||
23 | * Templates |
||
24 | * |
||
25 | * @var array |
||
26 | */ |
||
27 | private $templates; |
||
28 | |||
29 | public function __construct(array $templates) |
||
33 | |||
34 | /** |
||
35 | * Gets an index template by its name. |
||
36 | * |
||
37 | * @param string $name Index template to return |
||
38 | * |
||
39 | * @return IndexTemplate |
||
40 | * |
||
41 | * @throws \InvalidArgumentException if no index template exists for the given name |
||
42 | */ |
||
43 | public function getIndexTemplate($name = null) |
||
51 | } |
||
52 |