PHP Class Mongolid\Serializer\Type\ObjectID

Inheritance: implements Mongolid\Serializer\SerializableTypeInterface, implements JsonSerializabl\JsonSerializable
Afficher le fichier Open project: leroy-merlin-br/mongolid Class Usage Examples

Protected Properties

Свойство Type Description
$objectIdString string

Méthodes publiques

Méthode Description
__construct ( MongoDB\BSON\ObjectID | string $mongoId = null ) Constructor.
__toString ( ) : string Returns the hexidecimal representation of this ObjectID.
convert ( ) : MongoDB\BSON\ObjectID
jsonSerialize ( ) : string
serialize ( ) : string
unserialize ( mixed $data ) : void

Method Details

__construct() public méthode

Constructor.
public __construct ( MongoDB\BSON\ObjectID | string $mongoId = null )
$mongoId MongoDB\BSON\ObjectID | string MongoDB ObjectID or a string.

__toString() public méthode

Returns the hexidecimal representation of this ObjectID.
public __toString ( ) : string
Résultat string

convert() public méthode

public convert ( ) : MongoDB\BSON\ObjectID
Résultat MongoDB\BSON\ObjectID

jsonSerialize() public méthode

public jsonSerialize ( ) : string
Résultat string

serialize() public méthode

public serialize ( ) : string
Résultat string

unserialize() public méthode

public unserialize ( mixed $data ) : void
$data mixed Serialized string to parse.
Résultat void

Property Details

$objectIdString protected_oe property

protected string $objectIdString
Résultat string