| 1 | <?php |
||
| 18 | trait Searchable |
||
| 19 | { |
||
| 20 | use HasPagination, HandlesRequest; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | protected function getSearchScope() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Executes search to API. Query - search string. |
||
| 32 | * |
||
| 33 | * @param string $query |
||
| 34 | * @param string $scope |
||
| 35 | * @return SearchResponse |
||
| 36 | */ |
||
| 37 | protected function execSearchRequest($query, $scope) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Search entities by search query. |
||
| 57 | * |
||
| 58 | * @param string $query |
||
| 59 | * @param int $limit |
||
| 60 | * |
||
| 61 | * @return Pagination |
||
| 62 | */ |
||
| 63 | public function search($query, $limit = Pagination::DEFAULT_LIMIT) |
||
| 69 | } |
||
| 70 |