| 1 | <?php |
||
| 19 | class MongoCommandCursor extends AbstractCursor implements MongoCursorInterface |
||
|
1 ignored issue
–
show
|
|||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | private $command; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * MongoCommandCursor constructor. |
||
| 28 | * @param MongoClient $connection |
||
| 29 | * @param string $ns |
||
| 30 | * @param array $command |
||
| 31 | */ |
||
| 32 | public function __construct(MongoClient $connection, $ns, array $command = []) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param MongoClient $connection |
||
| 41 | * @param string $hash |
||
| 42 | * @param array $document |
||
| 43 | * @return MongoCommandCursor |
||
| 44 | */ |
||
| 45 | public static function createFromDocument(MongoClient $connection, $hash, array $document) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return \MongoDB\Driver\Cursor |
||
| 52 | */ |
||
| 53 | protected function ensureCursor() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return array |
||
| 71 | */ |
||
| 72 | protected function getCursorInfo() |
||
| 84 | } |
||
| 85 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.