interface ObjectIdInterface (View source)

This interface is implemented by MongoDB\BSON\ObjectId but may also be used for type-hinting and userland classes.

Methods

int
getTimestamp()

No description

string
__toString()

Returns the hexadecimal representation of this ObjectId

Details

int getTimestamp()

No description

Return Value

int

Returns the timestamp component of this ObjectIdInterface.

string __toString()

Returns the hexadecimal representation of this ObjectId

Return Value

string

Returns the hexadecimal representation of this ObjectId