php8.5
Home/ Manual/ mongodb / driver/ The MongoDB\Driver\CursorInterface interface

The MongoDB\Driver\CursorInterface interface

This interface is implemented by MongoDB\Driver\Cursor to be used as a parameter, return, or property type in userland classes.

Intro

This interface is implemented by MongoDB\Driver\Cursor to be used as a parameter, return, or property type in userland classes.

Class synopsis

class MongoDB\Driver\CursorInterface { }

Changelog

VersionDescription
PECL mongodb 2.0.0This interface now extends Iterator.Return types previously declared as tentative are now enforced.

Cursorinterface

In this section

Source: reference/mongodb/mongodb/driver/cursorinterface.xml · from the official PHP manual (php/doc-en)