| @@ 48-57 (lines=10) @@ | ||
| 45 | * |
|
| 46 | * @return array|null |
|
| 47 | */ |
|
| 48 | public function getSettings($index) |
|
| 49 | { |
|
| 50 | $config = $this->get($index); |
|
| 51 | ||
| 52 | if (null !== $config && isset($config['settings'])) { |
|
| 53 | return $config['settings']; |
|
| 54 | } |
|
| 55 | ||
| 56 | return null; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * Get mappings for an index |
|
| @@ 66-75 (lines=10) @@ | ||
| 63 | * |
|
| 64 | * @return array|null |
|
| 65 | */ |
|
| 66 | public function getMappings($index) |
|
| 67 | { |
|
| 68 | $config = $this->get($index); |
|
| 69 | ||
| 70 | if (null === $config || !isset($config['mappings'])) { |
|
| 71 | return null; |
|
| 72 | } |
|
| 73 | ||
| 74 | return $config['mappings']; |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * Get mapping for a type |
|