@@ -47,6 +47,9 @@ |
||
47 | 47 | */ |
48 | 48 | private $isIndexable = false; |
49 | 49 | |
50 | + /** |
|
51 | + * @param AnnotatedInterface $model |
|
52 | + */ |
|
50 | 53 | public function __construct($model) |
51 | 54 | { |
52 | 55 | $this->model = $model; |
@@ -11,7 +11,6 @@ |
||
11 | 11 | use Elasticsearch\Client; |
12 | 12 | use Maslosoft\Addendum\Interfaces\AnnotatedInterface; |
13 | 13 | use Maslosoft\Mangan\Helpers\CollectionNamer; |
14 | -use Maslosoft\Mangan\Mangan; |
|
15 | 14 | use Maslosoft\Manganel\Exceptions\ManganelException; |
16 | 15 | use Maslosoft\Manganel\Meta\ManganelMeta; |
17 | 16 |
@@ -36,6 +36,9 @@ discard block |
||
36 | 36 | */ |
37 | 37 | private $model; |
38 | 38 | |
39 | + /** |
|
40 | + * @param AnnotatedInterface $model |
|
41 | + */ |
|
39 | 42 | public function __construct($model) |
40 | 43 | { |
41 | 44 | $this->model = $model; |
@@ -85,6 +88,9 @@ discard block |
||
85 | 88 | return true; |
86 | 89 | } |
87 | 90 | |
91 | + /** |
|
92 | + * @param string $q |
|
93 | + */ |
|
88 | 94 | private function getParams($q = null) |
89 | 95 | { |
90 | 96 | // Try to get query from criteria if empty |
@@ -8,7 +8,6 @@ |
||
8 | 8 | |
9 | 9 | namespace Maslosoft\Manganel; |
10 | 10 | |
11 | -use Exception; |
|
12 | 11 | use Maslosoft\Addendum\Interfaces\AnnotatedInterface; |
13 | 12 | use Maslosoft\Mangan\Helpers\CollectionNamer; |
14 | 13 | use Maslosoft\Mangan\Interfaces\CriteriaAwareInterface; |
@@ -37,7 +37,7 @@ |
||
37 | 37 | /** |
38 | 38 | * Set currently used index |
39 | 39 | * @param string $index |
40 | - * @return static |
|
40 | + * @return IndexAwareInterface |
|
41 | 41 | */ |
42 | 42 | public function setIndex($index) |
43 | 43 | { |