| Total Complexity | 5 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait HandlesIndexes |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Determine if the given table has a given index. |
||
| 13 | * |
||
| 14 | * @param string $table |
||
| 15 | * @param string|array<string> $index |
||
| 16 | * @param string|null $type |
||
| 17 | * @return bool |
||
| 18 | */ |
||
| 19 | 2 | public function hasIndex($table, $index, $type = null, array $options = []) |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $id |
||
| 36 | * @return array<mixed> |
||
| 37 | */ |
||
| 38 | public function getIndex(string $id) |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $table |
||
| 45 | * @return mixed[] |
||
| 46 | * @throws ArangoException |
||
| 47 | */ |
||
| 48 | 4 | public function getIndexes($table) |
|
| 55 |