MongoDB\BSON\MinKey::unserialize
MongoDB\BSON\ObjectID::__construct
MongoDB\BSON
PHP Manual
The MongoDB\BSON\ObjectID class
(mongodb >=1.0.0)
Introduction
Class synopsis
MongoDB\BSON\ObjectID
implements
MongoDB\BSON\Type
,
Serializable
,
JsonSerializable
{
/* Methods */
final
public
__construct
([
string
$id
] )
final
public
integer
getTimestamp
(
void
)
final
public
mixed
jsonSerialize
(
void
)
final
public
string
serialize
(
void
)
final
public
string
__toString
(
void
)
final
public
void
unserialize
(
string
$serialized
)
}
Changelog
Version
Description
1.2.0
Implements
Serializable
and
JsonSerializable
.
Table of Contents
MongoDB\BSON\ObjectID::__construct
— Construct a new ObjectID
MongoDB\BSON\ObjectID::getTimestamp
— Returns the timestamp component of this ObjectID
MongoDB\BSON\ObjectID::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\ObjectID::serialize
— Serialize an ObjectID
MongoDB\BSON\ObjectID::__toString
— Returns the hexidecimal representation of this ObjectID
MongoDB\BSON\ObjectID::unserialize
— Unserialize an ObjectID
MongoDB\BSON\MinKey::unserialize
MongoDB\BSON\ObjectID::__construct
MongoDB\BSON
PHP Manual