@@ -57,6 +57,7 @@ |
||
57 | 57 | * Class constructor |
58 | 58 | * @param AnnotatedInterface $model |
59 | 59 | * @param string $transformatorClass |
60 | + * @param ManganMeta $meta |
|
60 | 61 | */ |
61 | 62 | public function __construct(AnnotatedInterface $model, $transformatorClass = TransformatorInterface::class, $meta = null) |
62 | 63 | { |
@@ -15,7 +15,6 @@ |
||
15 | 15 | |
16 | 16 | use Maslosoft\Mangan\Interfaces\ActiveRecordInterface; |
17 | 17 | use Maslosoft\Mangan\Sanitizers\MongoObjectId; |
18 | -use Maslosoft\Mangan\Sanitizers\MongoStringId; |
|
19 | 18 | use Maslosoft\Mangan\Traits\CollectionNameTrait; |
20 | 19 | use Maslosoft\Mangan\Traits\EntityManagerTrait; |
21 | 20 | use Maslosoft\Mangan\Traits\FinderTrait; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * Construct a new Cursor |
50 | 50 | * |
51 | - * @param MongoCursor|Iterator|Countable $cursor the cursor returned by the query |
|
51 | + * @param Iterator $cursor the cursor returned by the query |
|
52 | 52 | * @param AnnotatedInterface $model the model for instantiating objects |
53 | 53 | * @since v1.3.4 |
54 | 54 | */ |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Return the current element |
74 | - * @return Document|null |
|
74 | + * @return null|AnnotatedInterface |
|
75 | 75 | * @since v1.3.4 |
76 | 76 | */ |
77 | 77 | public function current() |
@@ -413,7 +413,7 @@ |
||
413 | 413 | /** |
414 | 414 | * Creates a list of documents based on the input data. |
415 | 415 | * This method is internally used by the find methods. |
416 | - * @param Iterator|array $cursor Results found to populate active records. |
|
416 | + * @param \Iterator $cursor Results found to populate active records. |
|
417 | 417 | * @return AnnotatedInterface[] array list of active records. |
418 | 418 | * @since v1.0 |
419 | 419 | */ |
@@ -27,7 +27,6 @@ |
||
27 | 27 | use Maslosoft\Mangan\Interfaces\ScopeManagerInterface; |
28 | 28 | use Maslosoft\Mangan\Meta\ManganMeta; |
29 | 29 | use Maslosoft\Mangan\Transformers\RawArray; |
30 | -use MongoCursor; |
|
31 | 30 | |
32 | 31 | /** |
33 | 32 | * Finder |