# La clase MongoDB\BSON\ObjectID

(mongodb >=1.0.0)

## Introducción

## Sinopsis de la Clase

class MongoDB\BSON\ObjectID implements MongoDB\BSON\Type {
/* Métodos */
final public MongoDB\BSON\ObjectId::__construct(?string `$id` = `null`)
final public MongoDB\BSON\ObjectId::getTimestamp(): int
final public MongoDB\BSON\ObjectId::jsonSerialize(): mixed
final public MongoDB\BSON\ObjectId::serialize(): string
final public MongoDB\BSON\ObjectId::__toString(): string
final public MongoDB\BSON\ObjectId::unserialize(string `$data`): void
}

## Tabla de contenidos

- MongoDB\BSON\ObjectId::__construct — Construct a new ObjectId
- MongoDB\BSON\ObjectId::getTimestamp — Returns the timestamp component of this ObjectId
- MongoDB\BSON\ObjectId::jsonSerialize — Returns a representation that can be converted to JSON
- MongoDB\BSON\ObjectId::serialize — Serialize an ObjectId
- MongoDB\BSON\ObjectId::__toString — Returns the hexidecimal representation of this ObjectId
- MongoDB\BSON\ObjectId::unserialize — Unserialize an ObjectId