Timestamp
final class Timestamp implements TimestampInterface, JsonSerializable, Type, Stringable (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
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 Timestamp
__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 mixed
jsonSerialize()
Returns a representation that can be converted to JSON