| Total Complexity | 2 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | trait SearchResultSetTrait |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var int Total items in result |
||
| 28 | */ |
||
| 29 | protected $totalItems; |
||
| 30 | /** |
||
| 31 | * @var ArrayData Facets |
||
| 32 | */ |
||
| 33 | protected $facets; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var Highlighting Highlighted items |
||
| 37 | */ |
||
| 38 | protected $highlight; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set the highlighted items |
||
| 42 | * |
||
| 43 | * @param $highlight |
||
| 44 | * @return SearchResult |
||
| 45 | */ |
||
| 46 | 6 | public function setHighlight($highlight): self |
|
| 47 | { |
||
| 48 | 6 | $this->highlight = $highlight; |
|
| 49 | |||
| 50 | 6 | return $this; |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Set the total amount of results |
||
| 55 | * |
||
| 56 | * @param $count |
||
| 57 | * @return self |
||
| 58 | */ |
||
| 59 | 6 | public function setTotalItems($count): self |
|
| 64 | } |
||
| 65 | } |
||
| 66 |