@@ -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() |
@@ -419,7 +419,7 @@ |
||
419 | 419 | /** |
420 | 420 | * Creates a list of documents based on the input data. |
421 | 421 | * This method is internally used by the find methods. |
422 | - * @param Iterator|array $cursor Results found to populate active records. |
|
422 | + * @param Iterator $cursor Results found to populate active records. |
|
423 | 423 | * @return AnnotatedInterface[] array list of active records. |
424 | 424 | * @since v1.0 |
425 | 425 | */ |