Documentation

CodecCursor
in package
implements CursorInterface

Tags
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

Constants

Properties

Methods

current()

public current() : TValue
Return values
TValue

fromCursor()

public static fromCursor(CursorInterface $cursor, DocumentCodec<string|int, NativeClass$codec) : NativeClass>
Parameters
$cursor : CursorInterface
$codec : DocumentCodec<string|int, NativeClass>
Tags
template
Return values
NativeClass>

getServer()

public getServer() : Server
Return values
Server

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>

__construct()

private __construct(CursorInterface $cursor, DocumentCodec<string|int, TValue$codec) : mixed
Parameters
$cursor : CursorInterface
$codec : DocumentCodec<string|int, TValue>

        
On this page

Search results