Conditions | 4 |
Paths | 8 |
Total Lines | 11 |
Lines | 11 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
26 | View Code Duplication | public function __construct($name, array $types, array $config) |
|
27 | { |
||
28 | $this->elasticSearchName = isset($config['elasticSearchName']) ? $config['elasticSearchName'] : $name; |
||
29 | $this->name = $name; |
||
30 | $this->settings = isset($config['settings']) ? $config['settings'] : array(); |
||
31 | if (!isset($config['template'])) { |
||
32 | throw new \InvalidArgumentException('Index template value must be set'); |
||
33 | } |
||
34 | $this->template = $config['template']; |
||
35 | $this->types = $types; |
||
36 | } |
||
37 | |||
48 |