| 1 | <?php |
||
| 19 | class MongoAdapter implements AdapterInterface |
||
| 20 | { |
||
| 21 | private $cursor; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Constructor. |
||
| 25 | * |
||
| 26 | * @param \MongoCursor $cursor The cursor. |
||
| 27 | */ |
||
| 28 | public function __construct(\MongoCursor $cursor) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Returns the cursor. |
||
| 35 | * |
||
| 36 | * @return \MongoCursor The cursor. |
||
| 37 | */ |
||
| 38 | public function getCursor() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function getNbResults() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public function getSlice($offset, $length) |
||
| 61 | } |
||
| 62 |