ObjectId
final class ObjectId implements Type, ObjectIdInterface, Serializable, JsonSerializable (View source)
Class ObjectId
Methods
__construct(string|null $id = null)
Construct a new ObjectId
string
__toString()
Returns the hexadecimal representation of this ObjectId
static
__set_state(array $properties)
No description
int
getTimestamp()
Returns the timestamp component of this ObjectId
mixed
jsonSerialize()
Returns a representation that can be converted to JSON
string|null
serialize()
Serialize an ObjectId
void
unserialize(string $data)
Unserialize an ObjectId
Details
final
__construct(string|null $id = null)
Construct a new ObjectId
final string
__toString()
Returns the hexadecimal representation of this ObjectId
static
__set_state(array $properties)
No description
final int
getTimestamp()
Since: 1.2.0
Returns the timestamp component of this ObjectId
final mixed
jsonSerialize()
Since: 1.2.0
Returns a representation that can be converted to JSON
final string|null
serialize()
Since: 1.2.0
Serialize an ObjectId
final void
unserialize(string $data)
Since: 1.2.0
Unserialize an ObjectId