@@ -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() |
@@ -286,7 +286,7 @@ |
||
286 | 286 | /** |
287 | 287 | * Whenever to use cursor |
288 | 288 | * @param bool $useCursor |
289 | - * @return FinderInterface |
|
289 | + * @return AbstractFinder |
|
290 | 290 | */ |
291 | 291 | public function withCursor($useCursor = true) |
292 | 292 | { |
@@ -29,6 +29,9 @@ |
||
29 | 29 | class RawFinder extends Finder |
30 | 30 | { |
31 | 31 | |
32 | + /** |
|
33 | + * @param EntityManagerInterface $em |
|
34 | + */ |
|
32 | 35 | public function __construct($model, $em = null) |
33 | 36 | { |
34 | 37 | parent::__construct($model, $em); |