| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | trait GetSetSearchResolverTrait |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var BaseIndex Index to use |
||
| 27 | */ |
||
| 28 | protected $index; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get the current index |
||
| 32 | * |
||
| 33 | * @return BaseIndex |
||
| 34 | */ |
||
| 35 | 1 | public function getIndex(): BaseIndex |
|
| 36 | { |
||
| 37 | 1 | return $this->index; |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set the current index |
||
| 42 | * |
||
| 43 | * @param mixed $index |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | 54 | public function setIndex($index) |
|
| 51 | } |
||
| 52 | } |
||
| 53 |