Skip to content

Commit c3f5ed9

Browse files
committed
Deleted usages of CursorInterface
1 parent 5288ba7 commit c3f5ed9

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/Collection.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function __construct(Manager $manager, $databaseName, $collectionName, ar
7676
/**
7777
* @param array $pipeline
7878
* @param array $options
79-
* @return CursorInterface
79+
* @return Cursor
8080
*/
8181
public function aggregate(array $pipeline, array $options = [])
8282
{
@@ -308,7 +308,7 @@ public function dropIndex($indexName, array $options = [])
308308
/**
309309
* @param array $filter
310310
* @param array $options
311-
* @return CursorInterface
311+
* @return Cursor
312312
*/
313313
public function find(array $filter = [], array $options = [])
314314
{

src/CommandExecutor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function executeCommand(Manager $manager, $databaseName, array $command,
9797
$command = new Command($command + $options);
9898
$command->setCompatibilityResolver(new CompatibilityResolver($resolver));
9999

100-
/** @var CursorInterface $cursor */
100+
/** @var Cursor $cursor */
101101
$cursor = $manager->executeCommand($databaseName, $command, $readPreference);
102102
$cursor->setTypeMap(TypeMapResolver::resolveStatic([]));
103103

src/Database.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getDatabaseName()
8989

9090
/**
9191
* @param array $options
92-
* @return CursorInterface
92+
* @return Cursor
9393
*/
9494
public function listCollections(array $options = [])
9595
{
@@ -99,7 +99,7 @@ public function listCollections(array $options = [])
9999
/**
100100
* @param CommandInterface $command
101101
* @param ReadPreference|null $readPreference
102-
* @return CursorInterface
102+
* @return Cursor
103103
*/
104104
public function runCommand(CommandInterface $command, ReadPreference $readPreference = null)
105105
{

src/Traits/ExecuteCommandTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace Tequila\MongoDB\Traits;
44

5-
use Tequila\MongoDB\CursorInterface;
5+
use Tequila\MongoDB\Cursor;
66

77
trait ExecuteCommandTrait
88
{
99
/**
1010
* @param array $command
1111
* @param array $options
12-
* @return CursorInterface
12+
* @return Cursor
1313
*/
1414
private function executeCommand(array $command, array $options)
1515
{

0 commit comments

Comments
 (0)