Timestamp
final class Timestamp implements TimestampInterface, Type, Serializable, JsonSerializable (View source)
Represents a BSON timestamp, which is an internal MongoDB type not intended for general date storage.
Methods
Construct a new Timestamp
Returns the string representation of this Timestamp
No description
Returns the increment component of this TimestampInterface
Returns the timestamp component of this TimestampInterface
Serialize a Timestamp
Unserialize a Timestamp
Returns a representation that can be converted to JSON
Details
final
__construct(int $increment, int $timestamp)
Construct a new Timestamp
final string
__toString()
Returns the string representation of this Timestamp
static
__set_state(array $properties)
No description
final int
getIncrement()
Returns the increment component of this TimestampInterface
final int
getTimestamp()
Returns the timestamp component of this TimestampInterface
final string|null
serialize()
Serialize a Timestamp
final void
unserialize(string $data)
Unserialize a Timestamp
final mixed
jsonSerialize()
Returns a representation that can be converted to JSON