@@ -19,11 +19,17 @@ |
||
| 19 | 19 | $this->delete($model->id, $this->uid); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param Model $model |
|
| 24 | + */ |
|
| 22 | 25 | private function filterFields($model) |
| 23 | 26 | { |
| 24 | 27 | return $this->filterKeysFromArray($model->attributesToArray(), $model::getSearchFields()); |
| 25 | 28 | } |
| 26 | 29 | |
| 30 | + /** |
|
| 31 | + * @param Model $model |
|
| 32 | + */ |
|
| 27 | 33 | private function filterParameters($model) |
| 28 | 34 | { |
| 29 | 35 | if (! empty($model::getSearchParameters())) { |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @param $limit |
|
| 42 | + * @param integer $limit |
|
| 43 | 43 | * @return $this |
| 44 | 44 | */ |
| 45 | 45 | public function limit($limit) |
@@ -79,7 +79,6 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | - * @param bool $path |
|
| 83 | 82 | * @return string |
| 84 | 83 | * @throws \Exception |
| 85 | 84 | */ |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * Search constructor. |
| 23 | 23 | * @param Index $index |
| 24 | - * @param \BestServedCold\LaravelZendSearch\Query $query |
|
| 24 | + * @param Query $query |
|
| 25 | 25 | */ |
| 26 | 26 | public function __construct(Index $index, Query $query) |
| 27 | 27 | { |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | 123 | * @param $string |
| 124 | - * @param array|bool|string $field |
|
| 124 | + * @param string $field |
|
| 125 | 125 | * @todo Work out why the search only works if the string is uppercase... |
| 126 | 126 | * @return $this|bool |
| 127 | 127 | */ |
@@ -8,6 +8,9 @@ |
||
| 8 | 8 | protected $field = false; |
| 9 | 9 | protected $Options = []; |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param boolean $string |
|
| 13 | + */ |
|
| 11 | 14 | public function __construct($string, $field = false, $options = []) |
| 12 | 15 | { |
| 13 | 16 | $this->string = $string; |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | * @param $id |
| 50 | 50 | * @param array $fields fields that are indexed |
| 51 | 51 | * @param array $parameters fields that aren't indexed |
| 52 | - * @param boolean|int $uid unique identifier, if required |
|
| 52 | + * @param boolean|string $uid unique identifier, if required |
|
| 53 | 53 | * @return mixed |
| 54 | 54 | */ |
| 55 | 55 | public function insert($id, array $fields, array $parameters = [], $uid = false) |