| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class SearchQuery extends BaseQuery |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int Default page size |
||
| 16 | */ |
||
| 17 | public static $default_page_size = 10; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * A simple stub to cover changes between Solr Search modules |
||
| 21 | * @deprecated please use {@link self::addTerm()} |
||
| 22 | * @param string $text |
||
| 23 | * @param null|array $fields |
||
| 24 | * @param array $boost |
||
| 25 | * @return $this |
||
| 26 | */ |
||
| 27 | public function addSearchTerm($text, $fields = [], $boost = []) |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Set the rows that are to be returned |
||
| 37 | * Compatibility stub |
||
| 38 | * @param int $limit |
||
| 39 | * @return $this |
||
| 40 | */ |
||
| 41 | public function setLimit($limit): self |
||
| 42 | { |
||
| 43 | $this->rows = $limit; |
||
| 44 | return $this; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Get the rows that are to be returned |
||
| 49 | * Compatibility stub |
||
| 50 | * @return int |
||
| 51 | */ |
||
| 52 | public function getLimit(): int |
||
| 55 | } |
||
| 56 | |||
| 58 |