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