mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-29 12:22:07 +02:00
40 lines
894 B
PHP
40 lines
894 B
PHP
<?php
|
|
|
|
namespace MongoDB;
|
|
|
|
/**
|
|
* Value object for the 64-bit cursor identifier.
|
|
*
|
|
* This is useful for compatibility with 32-bit platforms, and also allows
|
|
* Cursor constructors to type-hint against a class.
|
|
*/
|
|
final class CursorId
|
|
{
|
|
// $id is an internal uint64_t value instead of a class property
|
|
|
|
/**
|
|
* Construct a new CursorId
|
|
*
|
|
* @param string $id
|
|
*/
|
|
public function __construct($id)
|
|
{
|
|
// Set internal uint64_t value
|
|
}
|
|
|
|
/**
|
|
* Returns the string representation of the CursorId
|
|
*
|
|
* @return string
|
|
*/
|
|
public function __toString()
|
|
{
|
|
/* Return string representation of internal uint64_t value.
|
|
*
|
|
* This can be used to compare two CursorIds on a 32-bit platform. Is
|
|
* this functionality necessary, or should we do without any "getter"
|
|
* method?
|
|
*/
|
|
}
|
|
}
|