1 | <?php |
||
19 | class MongoCommandCursor extends AbstractCursor implements MongoCursorInterface |
||
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 = []) |
||
33 | { |
||
34 | parent::__construct($connection, $ns); |
||
35 | |||
36 | $this->command = $command; |
||
37 | } |
||
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 | /** |
||
86 | * @return array |
||
87 | */ |
||
88 | protected function getIterationInfo() |
||
103 | |||
104 | /** |
||
105 | * @return array |
||
106 | */ |
||
107 | public function __sleep() |
||
111 | } |
||
112 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.