CodecCursor
implements
CursorInterface
-
template
-
-
template-implements
-
Table of Contents
Interfaces
- CursorInterface
Constants
-
TYPEMAP
= ['root' => 'bson']
Properties
-
$codec
: DocumentCodec
-
$current
: TValue|null
-
$cursor
: CursorInterface
Methods
-
current()
: TValue
-
fromCursor()
: NativeClass>
-
getId()
: Int64
-
getServer()
: Server
-
isDead()
: bool
-
key()
: int
-
next()
: void
-
rewind()
: void
-
setTypeMap()
: void
-
toArray()
: array<int, TValue>
-
valid()
: bool
-
__construct()
: mixed
TYPEMAP
private
mixed
TYPEMAP
= ['root' => 'bson']
$codec
private
DocumentCodec
$codec
$current
private
TValue|null
$current
= null
$cursor
private
CursorInterface
$cursor
current()
public
current() : TValue
fromCursor()
public
static fromCursor(CursorInterface $cursor, DocumentCodec<string|int, NativeClass> $codec) : NativeClass>
Parameters
-
$cursor
: CursorInterface
-
-
$codec
: DocumentCodec<string|int, NativeClass>
-
-
template
-
Return values
NativeClass>
getId()
public
getId() : Int64
getServer()
public
getServer() : Server
isDead()
public
isDead() : bool
key()
public
key() : int
next()
public
next() : void
rewind()
public
rewind() : void
setTypeMap()
public
setTypeMap(array<string|int, mixed> $typemap) : void
Parameters
-
$typemap
: array<string|int, mixed>
-
toArray()
public
toArray() : array<int, TValue>
Return values
array<int, TValue>
valid()
public
valid() : bool
__construct()
private
__construct(CursorInterface $cursor, DocumentCodec<string|int, TValue> $codec) : mixed
Parameters
-
$cursor
: CursorInterface
-
-
$codec
: DocumentCodec<string|int, TValue>
-