EntityMap
in package
implements
ArrayAccess
Interfaces, Classes, Traits and Enums
- ArrayAccess
Table of Contents
- $isSupportedType : Constraint
- $lsidsBySession : array<string|int, stdClass>
- Track lsids so they can be accessed after Session::getLogicalSessionId() has been called.
- $map : array<string|int, mixed>
- __destruct() : mixed
- closeCursor() : void
- Closes a cursor by removing it from the entity map.
- getClient() : Client
- getCollection() : Collection
- getDatabase() : Database
- getLogicalSessionId() : stdClass
- getRootClientIdOf() : mixed
- getSession() : Session
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
- set() : void
- isSupportedType() : Constraint
Properties
$isSupportedType
private
static Constraint
$isSupportedType
$lsidsBySession
Track lsids so they can be accessed after Session::getLogicalSessionId() has been called.
private
array<string|int, stdClass>
$lsidsBySession
= []
$map
private
array<string|int, mixed>
$map
= []
Methods
__destruct()
public
__destruct() : mixed
Return values
mixed —closeCursor()
Closes a cursor by removing it from the entity map.
public
closeCursor(string $cursorId) : void
Parameters
- $cursorId : string
Tags
Return values
void —getClient()
public
getClient(string $clientId) : Client
Parameters
- $clientId : string
Return values
Client —getCollection()
public
getCollection(string $collectionId) : Collection
Parameters
- $collectionId : string
Return values
Collection —getDatabase()
public
getDatabase(string $databaseId) : Database
Parameters
- $databaseId : string
Return values
Database —getLogicalSessionId()
public
getLogicalSessionId(string $sessionId) : stdClass
Parameters
- $sessionId : string
Return values
stdClass —getRootClientIdOf()
public
getRootClientIdOf(string $id) : mixed
Parameters
- $id : string
Return values
mixed —getSession()
public
getSession(string $sessionId) : Session
Parameters
- $sessionId : string
Return values
Session —offsetExists()
public
offsetExists(mixed $id) : bool
Parameters
- $id : mixed
Tags
Return values
bool —offsetGet()
public
offsetGet(mixed $id) : mixed
Parameters
- $id : mixed
Tags
Return values
mixed —offsetSet()
public
offsetSet(mixed $id, mixed $value) : void
Parameters
- $id : mixed
- $value : mixed
Tags
Return values
void —offsetUnset()
public
offsetUnset(mixed $id) : void
Parameters
- $id : mixed
Tags
Return values
void —set()
public
set(string $id, mixed $value[, string|null $parentId = null ]) : void
Parameters
- $id : string
- $value : mixed
- $parentId : string|null = null
Return values
void —isSupportedType()
private
static isSupportedType() : Constraint