| 1 | <?php |
||
| 10 | class IndexTemplateConfig implements IndexConfigInterface |
||
| 11 | { |
||
| 12 | use IndexConfigTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Index name pattern |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $template; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Constructor expects an array as generated by the Container Configuration builder. |
||
| 23 | * |
||
| 24 | * @param string $name |
||
| 25 | * @param TypeConfig[] $types |
||
| 26 | * @param array $config |
||
| 27 | */ |
||
| 28 | 9 | public function __construct($name, array $types, array $config) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Gets index name pattern |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 7 | public function getTemplate() |
|
| 51 | } |
||
| 52 |