@@ -72,7 +72,7 @@ |
||
| 72 | 72 | /** |
| 73 | 73 | * Delete index. |
| 74 | 74 | * |
| 75 | - * @param mixed $index |
|
| 75 | + * @param string $index |
|
| 76 | 76 | */ |
| 77 | 77 | protected function deleteIndex($index) |
| 78 | 78 | { |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Put response. |
| 20 | 20 | * |
| 21 | - * @param array $response |
|
| 21 | + * @param callable $response |
|
| 22 | 22 | */ |
| 23 | 23 | public function response(array $response) |
| 24 | 24 | { |
@@ -36,6 +36,9 @@ |
||
| 36 | 36 | return ($this->childClass)::all(new QueryBuilder($query)); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param integer $id |
|
| 41 | + */ |
|
| 39 | 42 | public function find($id): IElasticsearchModel |
| 40 | 43 | { |
| 41 | 44 | $relationshipKey = new RelationshipKey($id, $this->parent->getPrimaryKey()); |