Метод |
Описание |
|
__construct ( Converter $converter ) |
Constructor. |
|
convert ( array $attributes ) : array |
Converts recursively the given objects (probably retrieved from MongoDB)
to our specific types. |
|
serialize ( array $attributes ) : string |
Walk into an array to get not serializable objects and replace it by a
serializable one. |
|
unconvert ( array $attributes ) : array |
Unconverts recursively the given objects to persistable objects on MongoDB
Example: converts Type\ObjectID to MongoDB\BSON\ObjectID. |
|
unserialize ( string $data ) : array |
Unserializes the given string and turn it back to specific objects. |
|