Since: 1.3.0

interface TimestampInterface (View source)

Interface TimestampInterface

Methods

int
getIncrement()

Returns the increment component of this TimestampInterface

int
getTimestamp()

Returns the timestamp component of this TimestampInterface

string
__toString()

Returns the string representation of this TimestampInterface

Details

int getIncrement()

Since: 1.3.0

Returns the increment component of this TimestampInterface

Return Value

int

Returns the increment component of this TimestampInterface. On 32-bit systems this method may return a negative number. Although the increment and timestamp parts of the BSON timestamp type consists of two unsigned 32-bit values, PHP can not represent these on 32-bit platforms.

int getTimestamp()

Since: 1.3.0

Returns the timestamp component of this TimestampInterface

Return Value

int

Returns the timestamp component of this TimestampInterface. On 32-bit systems this method may return a negative number. Although the increment and timestamp parts of the BSON timestamp type consists of two unsigned 32-bit values, PHP can not represent these on 32-bit platforms.

string __toString()

Since: 1.3.0

Returns the string representation of this TimestampInterface

Return Value

string

Returns the string representation of this TimestampInterface.