« MongoDB\BSON\MinKey::jsonSerialize
MongoDB\BSON\ObjectId::__construct »
PHP Manual
MongoDB\BSON
La clase MongoDB\BSON\ObjectID
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::__toString
():
string
}
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::__toString
— Returns the hexidecimal representation of this ObjectId