|
The MongoDB\BSON\ObjectId classはじめにBSON type for an » ObjectId. The value consists of 12 bytes, where the first four bytes are a timestamp that reflect the ObjectId's creation. Specifically, the value consists of:
In MongoDB, each document stored in a collection requires a unique
Using ObjectIds for the
クラス概要MongoDB\BSON\ObjectId
final
class MongoDB\BSON\ObjectId
implements
MongoDB\BSON\ObjectIdInterface, MongoDB\BSON\Type, Serializable, JsonSerializable, Stringable {
/* メソッド */
final public __construct(stringnull
$id = null )final public int getTimestamp()
final public mixed jsonSerialize()
final public string serialize()
final public string __toString()
final public void unserialize(string
}$data )変更履歴
|