1 | <?php |
||
8 | class Searcher implements ISearcher |
||
9 | { |
||
10 | |||
11 | protected $provider = null; |
||
12 | |||
13 | protected $query = ''; |
||
14 | |||
15 | protected $limit = 100; |
||
16 | |||
17 | protected $offset = 0; |
||
18 | |||
19 | |||
20 | 6 | public function __construct(ISearchProvider $provider) |
|
24 | |||
25 | |||
26 | 3 | public function query(string $query) : ISearcher |
|
31 | |||
32 | |||
33 | 3 | public function limit(int $limit) : ISearcher |
|
38 | |||
39 | |||
40 | 3 | public function offset(int $offset) : ISearcher |
|
45 | |||
46 | |||
47 | 2 | public function find() : ICollection |
|
51 | |||
52 | } |
||
53 |