@@ 26-34 (lines=9) @@ | ||
23 | * @param string $query |
|
24 | * @param int $limit |
|
25 | */ |
|
26 | public function __construct($query, $limit = 10) |
|
27 | { |
|
28 | $this->query = $query; |
|
29 | $this->limit = (int)$limit; |
|
30 | if ($this->limit < 1) { |
|
31 | $this->limit = 1; |
|
32 | } |
|
33 | parent::__construct(); |
|
34 | } |
|
35 | ||
36 | /** |
|
37 | * Build search results. Should return array collection: [AbstractSearchResult] |
@@ 28-36 (lines=9) @@ | ||
25 | * @param string $query |
|
26 | * @param int $limit |
|
27 | */ |
|
28 | public function __construct($query, $limit = 10) |
|
29 | { |
|
30 | $this->query = $query; |
|
31 | $this->limit = (int)$limit; |
|
32 | if ($this->limit < 1) { |
|
33 | $this->limit = 1; |
|
34 | } |
|
35 | parent::__construct(); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * Build search results |