*
*
* The third parameter is now an options array. For backwards compatibility, this parameter will still accept a MongoDB\Driver\ReadPreference object.
* @throws InvalidArgumentException on argument parsing errors.
* @throws ConnectionException if connection to the server fails (for reasons other than authentication).
* @throws AuthenticationException if authentication is needed and fails.
* @throws RuntimeException on other errors (e.g. invalid command, issuing a write command to a secondary).
* @return Cursor
*/
final public function executeQuery($namespace, Query $zquery, $options = [])
{
}
/**
* Returns the hostname of this server
* @link https://php.net/manual/en/mongodb-driver-server.gethost.php
* @throws InvalidArgumentException on argument parsing errors.
* @return string
*/
final public function getHost()
{
}
/**
* Returns an array of information about this server
* @link https://php.net/manual/en/mongodb-driver-server.getinfo.php
* @throws InvalidArgumentException on argument parsing errors.
* @return array
*/
final public function getInfo()
{
}
/**
* Returns the latency of this server
* @link https://php.net/manual/en/mongodb-driver-server.getlatency.php
* @throws InvalidArgumentException on argument parsing errors.
* @return int
*/
final public function getLatency()
{
}
/**
* Returns the port on which this server is listening
* @link https://php.net/manual/en/mongodb-driver-server.getport.php
* @throws InvalidArgumentException on argument parsing errors.
* @return int
*/
final public function getPort()
{
}
/**
* Returns an array of tags describing this server in a replica set
* @link https://php.net/manual/en/mongodb-driver-server.gettags.php
* @throws InvalidArgumentException on argument parsing errors.
* @return array An array of tags used to describe this server in a replica set. The array will contain zero or more string key and value pairs.
*/
final public function getTags()
{
}
/**
* Returns an integer denoting the type of this server
* @link https://php.net/manual/en/mongodb-driver-server.gettype.php
* @throws InvalidArgumentException on argument parsing errors.
* @return int denoting the type of this server
*/
final public function getType()
{
}
/**
* Checks if this server is an arbiter member of a replica set
* @link https://php.net/manual/en/mongodb-driver-server.isarbiter.php
* @throws InvalidArgumentException on argument parsing errors.
* @return bool
*/
final public function isArbiter()
{
}
/**
* Checks if this server is a hidden member of a replica set
* @link https://php.net/manual/en/mongodb-driver-server.ishidden.php
* @throws InvalidArgumentException on argument parsing errors.
* @return bool
*/
final public function isHidden()
{
}
/**
* Checks if this server is a passive member of a replica set
* @link https://php.net/manual/en/mongodb-driver-server.ispassive.php
* @throws InvalidArgumentException on argument parsing errors.
* @return bool
*/
final public function isPassive()
{
}
/**
* Checks if this server is a primary member of a replica set
* @link https://php.net/manual/en/mongodb-driver-server.isprimary.php
* @throws InvalidArgumentException on argument parsing errors.
* @return bool
*/
final public function isPrimary()
{
}
/**
* Checks if this server is a secondary member of a replica set
* @link https://php.net/manual/en/mongodb-driver-server.issecondary.php
* @throws InvalidArgumentException on argument parsing errors.
* @return bool
*/
final public function isSecondary()
{
}
}
/**
* The MongoDB\Driver\Query class is a value object that represents a database query.
* @link https://php.net/manual/en/class.mongodb-driver-query.php
*/
final class Query
{
/**
* Construct new Query
* @link https://php.net/manual/en/mongodb-driver-query.construct.php
* @param array|object $filter The search filter.
* @param array $options
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function __construct($filter, ?array $options = [])
{
}
final public function __wakeup()
{
}
}
/**
* The MongoDB\Driver\Command class is a value object that represents a database command.
* To provide "Command Helpers" the MongoDB\Driver\Command object should be composed.
* @link https://php.net/manual/en/class.mongodb-driver-command.php
* @since 1.0.0
*/
final class Command
{
/**
* Construct new Command
* @param array|object $document The complete command to construct
* @param array $options Do not use this parameter to specify options described in the command's reference in the MongoDB manual.
* @throws InvalidArgumentException on argument parsing errors.
* @link https://secure.php.net/manual/en/mongodb-driver-command.construct.php
* @since 1.0.0
*/
final public function __construct($document, ?array $options = [])
{
}
final public function __wakeup()
{
}
}
/**
* Class ReadPreference
* @link https://php.net/manual/en/class.mongodb-driver-readpreference.php
*/
final class ReadPreference implements Serializable, \Serializable
{
public const RP_PRIMARY = 1;
public const RP_PRIMARY_PREFERRED = 5;
public const RP_SECONDARY = 2;
public const RP_SECONDARY_PREFERRED = 6;
public const RP_NEAREST = 10;
/** @since 1.7.0 */
public const PRIMARY = 'primary';
/** @since 1.7.0 */
public const PRIMARY_PREFERRED = 'primaryPreferred';
/** @since 1.7.0 */
public const SECONDARY = 'secondary';
/** @since 1.7.0 */
public const SECONDARY_PREFERRED = 'secondaryPreferred';
/** @since 1.7.0 */
public const NEAREST = 'nearest';
/** @since 1.2.0 */
public const NO_MAX_STALENESS = -1;
/** @since 1.2.0 */
public const SMALLEST_MAX_STALENESS_SECONDS = 90;
/**
* Construct immutable ReadPreference
* @link https://php.net/manual/en/mongodb-driver-readpreference.construct.php
* @param string|int $mode
* @param array|null $tagSets
* @param array $options
* @throws InvalidArgumentException if mode is invalid or if tagSets is provided for a primary read preference.
*/
final public function __construct($mode, ?array $tagSets = null, ?array $options = [])
{
}
public static function __set_state(array $properties)
{
}
/**
* Returns the ReadPreference's "hedge" option
* @since 1.8.0
* @link https://www.php.net/manual/en/mongodb-driver-readpreference.gethedge.php
* @return object|null
*/
final public function getHedge()
{
}
/**
* Returns the ReadPreference's "mode" option
* @link https://php.net/manual/en/mongodb-driver-readpreference.getmode.php
* @return int
*/
final public function getMode()
{
}
/**
* Returns the ReadPreference's "mode" option as a string
* @since 1.7.0
* @link https://php.net/manual/en/mongodb-driver-readpreference.getmodestring.php
* @return string
* @throws InvalidArgumentException
*/
final public function getModeString()
{
}
/**
* Returns the ReadPreference's "tagSets" option
* @link https://php.net/manual/en/mongodb-driver-readpreference.gettagsets.php
* @return array
*/
final public function getTagSets()
{
}
/**
* Returns an object for BSON serialization
* @since 1.2.0
* @link https://www.php.net/manual/en/mongodb-driver-readpreference.bsonserialize.php
* @return object Returns an object for serializing the WriteConcern as BSON.
* @throws InvalidArgumentException
*/
final public function bsonSerialize()
{
}
/**
* Serialize a ReadPreference
* @since 1.7.0
* @link https://php.net/manual/en/mongodb-driver-readpreference.serialize.php
* @return string
* @throws InvalidArgumentException
*/
final public function serialize()
{
}
/**
* Unserialize a ReadPreference
* @since 1.7.0
* @link https://php.net/manual/en/mongodb-driver-readpreference.unserialize.php
* @param string $serialized
* @return void
* @throws InvalidArgumentException on argument parsing errors or if the properties are invalid
* @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed)
*/
final public function unserialize($serialized)
{
}
final public function getMaxStalenessSeconds()
{
}
}
/**
* MongoDB\Driver\ReadConcern controls the level of isolation for read operations for replica sets and replica set shards. This option requires the WiredTiger storage engine and MongoDB 3.2 or later.
* @link https://php.net/manual/en/class.mongodb-driver-readconcern.php
* @since 1.1.0
*/
final class ReadConcern implements Serializable, \Serializable
{
/** @since 1.2.0 */
public const LINEARIZABLE = 'linearizable';
public const LOCAL = 'local';
public const MAJORITY = 'majority';
/** @since 1.4.0 */
public const AVAILABLE = 'available';
/**
* Construct immutable ReadConcern
* @link https://php.net/manual/en/mongodb-driver-readconcern.construct.php
* @param string $level
*/
final public function __construct($level = null)
{
}
public static function __set_state(array $properties)
{
}
/**
* Returns the ReadConcern's "level" option
* @link https://php.net/manual/en/mongodb-driver-readconcern.getlevel.php
* @return string|null
* @since 1.0.0
*/
final public function getLevel()
{
}
/**
* Returns an object for BSON serialization
* @link https://php.net/manual/en/mongodb-driver-readconcern.bsonserialize.php
* @return object
* @since 1.2.0
*/
final public function bsonSerialize()
{
}
/**
* Checks if this is the default read concern
* @link https://secure.php.net/manual/en/mongodb-driver-readconcern.isdefault.php
* @return bool
* @since 1.3.0
* @throws \MongoDB\Driver\Exception\InvalidArgumentException On argument parsing errors.
*/
final public function isDefault()
{
}
/**
* Serialize a ReadConcern
* @since 1.7.0
* @link https://php.net/manual/en/mongodb-driver-readconcern.serialize.php
* @return string
* @throws InvalidArgumentException
*/
final public function serialize()
{
}
/**
* Unserialize a ReadConcern
* @since 1.7.0
* @link https://php.net/manual/en/mongodb-driver-readconcern.unserialize.php
* @param string $serialized
* @return void
* @throws InvalidArgumentException on argument parsing errors or if the properties are invalid
* @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed)
*/
final public function unserialize($serialized)
{
}
}
/**
* The MongoDB\Driver\Cursor class encapsulates the results of a MongoDB command or query and may be returned by MongoDB\Driver\Manager::executeCommand() or MongoDB\Driver\Manager::executeQuery(), respectively.
* @link https://php.net/manual/en/class.mongodb-driver-cursor.php
*/
final class Cursor implements CursorInterface, \Iterator
{
/**
* Create a new Cursor
* MongoDB\Driver\Cursor objects are returned as the result of an executed command or query and cannot be constructed directly.
* @link https://php.net/manual/en/mongodb-driver-cursor.construct.php
*/
final private function __construct()
{
}
final public function __wakeup()
{
}
/**
* Returns the current element.
* @link https://www.php.net/manual/en/mongodb-driver-cursor.current.php
* @return array|object
*/
public function current()
{
}
/**
* Returns the MongoDB\Driver\CursorId associated with this cursor. A cursor ID cursor uniquely identifies the cursor on the server.
* @link https://php.net/manual/en/mongodb-driver-cursor.getid.php
* @return CursorId for this Cursor
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function getId()
{
}
/**
* Returns the MongoDB\Driver\Server associated with this cursor. This is the server that executed the query or command.
* @link https://php.net/manual/en/mongodb-driver-cursor.getserver.php
* @return Server for this Cursor
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function getServer()
{
}
/**
* Checks if a cursor is still alive
* @link https://php.net/manual/en/mongodb-driver-cursor.isdead.php
* @return bool
* @throws InvalidArgumentException On argument parsing errors
*/
final public function isDead()
{
}
/**
* Returns the current result's index within the cursor.
* @link https://www.php.net/manual/en/mongodb-driver-cursor.key.php
* @return int
*/
public function key()
{
}
/**
* Advances the cursor to the next result.
* @link https://www.php.net/manual/en/mongodb-driver-cursor.next.php
* @return void
* @throws \MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
* @throws \MongoDB\Driver\Exception\ConnectionException if connection to the server fails (for reasons other than authentication).
* @throws \MongoDB\Driver\Exception\AuthenticationException if authentication is needed and fails.
*/
public function next()
{
}
/**
* Rewind the cursor to the first result.
* @link https://www.php.net/manual/en/mongodb-driver-cursor.rewind.php
* @return void
* @throws \MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
* @throws \MongoDB\Driver\Exception\ConnectionException if connection to the server fails (for reasons other than authentication).
* @throws \MongoDB\Driver\Exception\AuthenticationException if authentication is needed and fails.
* @throws \MongoDB\Driver\Exception\LogicException if this method is called after the cursor has advanced beyond its first position.
*/
public function rewind()
{
}
/**
* Sets a type map to use for BSON unserialization
*
* @link https://php.net/manual/en/mongodb-driver-cursor.settypemap.php
*
* @param array $typemap
* @return void
* @throws InvalidArgumentException On argument parsing errors or if a class in the type map cannot
* be instantiated or does not implement MongoDB\BSON\Unserializable
*/
final public function setTypeMap(array $typemap)
{
}
/**
* Returns an array of all result documents for this cursor
* @link https://php.net/manual/en/mongodb-driver-cursor.toarray.php
* @return array
* @throws InvalidArgumentException On argument parsing errors
*/
final public function toArray()
{
}
/**
* Checks if the current position in the cursor is valid.
* @link https://www.php.net/manual/en/mongodb-driver-cursor.valid.php
* @return bool
*/
public function valid()
{
}
}
/**
* Class CursorId
* @link https://php.net/manual/en/class.mongodb-driver-cursorid.php
*/
final class CursorId implements \Serializable
{
/**
* Create a new CursorId (not used)
* CursorId objects are returned from Cursor::getId() and cannot be constructed directly.
* @link https://php.net/manual/en/mongodb-driver-cursorid.construct.php
* @see Cursor::getId()
*/
final private function __construct()
{
}
/**
* String representation of the cursor ID
* @link https://php.net/manual/en/mongodb-driver-cursorid.tostring.php
* @return string representation of the cursor ID.
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function __toString()
{
}
final public function __wakeup()
{
}
public static function __set_state(array $properties)
{
}
/**
* Serialize a CursorId
* @since 1.7.0
* @link https://php.net/manual/en/mongodb-driver-cursorid.serialize.php
* @return string
* @throws InvalidArgumentException
*/
final public function serialize()
{
}
/**
* Unserialize a CursorId
* @since 1.7.0
* @link https://php.net/manual/en/mongodb-driver-cursorid.unserialize.php
* @param string $serialized
* @return void
* @throws InvalidArgumentException on argument parsing errors or if the properties are invalid
* @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed)
*/
final public function unserialize($serialized)
{
}
}
/**
* The BulkWrite collects one or more write operations that should be sent to the server.
* After adding any number of insert, update, and delete operations, the collection may be executed via Manager::executeBulkWrite().
* Write operations may either be ordered (default) or unordered.
* Ordered write operations are sent to the server, in the order provided, for serial execution.
* If a write fails, any remaining operations will be aborted.
* Unordered operations are sent to the server in an arbitrary order where they may be executed in parallel.
* Any errors that occur are reported after all operations have been attempted.
*/
final class BulkWrite implements \Countable
{
/**
* Create a new BulkWrite
* Constructs a new ordered (default) or unordered BulkWrite.
* @link https://php.net/manual/en/mongodb-driver-bulkwrite.construct.php
* @param array $options
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function __construct(?array $options = [])
{
}
final public function __wakeup()
{
}
/**
* Count expected roundtrips for executing the bulk
* Returns the expected number of client-to-server roundtrips required to execute all write operations in the BulkWrite.
* @link https://php.net/manual/en/mongodb-driver-bulkwrite.count.php
* @return int number of expected roundtrips to execute the BulkWrite.
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function count()
{
}
/**
* Add a delete operation to the bulk
* @link https://php.net/manual/en/mongodb-driver-bulkwrite.delete.php
* @param array|object $query The search filter
* @param array $deleteOptions
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function delete($query, ?array $deleteOptions = [])
{
}
/**
* Add an insert operation to the bulk
* If the document did not have an _id, a MongoDB\BSON\ObjectId will be generated and returned; otherwise, no value is returned.
* @link https://php.net/manual/en/mongodb-driver-bulkwrite.insert.php
* @param array|object $document
* @return mixed
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function insert($document)
{
}
/**
* Add an update operation to the bulk
* @link https://php.net/manual/en/mongodb-driver-bulkwrite.update.php
* @param array|object $query The search filter
* @param array|object $newObj A document containing either update operators (e.g. $set) or a replacement document (i.e. only field:value expressions)
* @param array $updateOptions
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function update($query, $newObj, ?array $updateOptions = [])
{
}
}
/**
* WriteConcern controls the acknowledgment of a write operation, specifies the level of write guarantee for Replica Sets.
*/
final class WriteConcern implements Serializable, \Serializable
{
/** Majority of all the members in the set; arbiters, non-voting members, passive members, hidden members and delayed members are all included in the definition of majority write concern. */
public const MAJORITY = 'majority';
/**
* Construct immutable WriteConcern
* @link https://php.net/manual/en/mongodb-driver-writeconcern.construct.php
* @param string|int $w
* @param int $wtimeout How long to wait (in milliseconds) for secondaries before failing.
* @param bool $journal Wait until mongod has applied the write to the journal.
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function __construct($w, $wtimeout = 0, $journal = false)
{
}
public static function __set_state(array $properties)
{
}
/**
* Returns the WriteConcern's "journal" option
* @link https://php.net/manual/en/mongodb-driver-writeconcern.getjournal.php
* @return bool|null
*/
final public function getJournal()
{
}
/**
* Returns the WriteConcern's "w" option
* @link https://php.net/manual/en/mongodb-driver-writeconcern.getw.php
* @return string|int|null
*/
final public function getW()
{
}
/**
* Returns the WriteConcern's "wtimeout" option
* @link https://php.net/manual/en/mongodb-driver-writeconcern.getwtimeout.php
* @return int
*/
final public function getWtimeout()
{
}
/**
* Returns an object for BSON serialization
* @since 1.2.0
* @link https://www.php.net/manual/en/mongodb-driver-writeconcern.bsonserialize.php
* @return object Returns an object for serializing the WriteConcern as BSON.
* @throws InvalidArgumentException
*/
final public function bsonSerialize()
{
}
/**
* Serialize a WriteConcern
* @since 1.7.0
* @link https://php.net/manual/en/mongodb-driver-writeconcern.serialize.php
* @return string
* @throws InvalidArgumentException
*/
final public function serialize()
{
}
/**
* Unserialize a WriteConcern
* @since 1.7.0
* @link https://php.net/manual/en/mongodb-driver-writeconcern.unserialize.php
* @param string $serialized
* @return void
* @throws InvalidArgumentException on argument parsing errors or if the properties are invalid
* @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed)
*/
final public function unserialize($serialized)
{
}
final public function isDefault()
{
}
}
/**
* The MongoDB\Driver\WriteResult class encapsulates information about an executed MongoDB\Driver\BulkWrite and may be returned by MongoDB\Driver\Manager::executeBulkWrite().
* @link https://php.net/manual/en/class.mongodb-driver-writeresult.php
*/
final class WriteResult
{
final private function __construct()
{
}
final public function __wakeup()
{
}
/**
* Returns the number of documents deleted
* @link https://php.net/manual/en/mongodb-driver-writeresult.getdeletedcount.php
* @return int|null
*/
final public function getDeletedCount()
{
}
/**
* Returns the number of documents inserted (excluding upserts)
* @link https://php.net/manual/en/mongodb-driver-writeresult.getinsertedcount.php
* @return int|null
*/
final public function getInsertedCount()
{
}
/**
* Returns the number of documents selected for update
* @link https://php.net/manual/en/mongodb-driver-writeresult.getmatchedcount.php
* @return int|null
*/
final public function getMatchedCount()
{
}
/**
* Returns the number of existing documents updated
* @link https://php.net/manual/en/mongodb-driver-writeresult.getmodifiedcount.php
* @return int|null
*/
final public function getModifiedCount()
{
}
/**
* Returns the server associated with this write result
* @link https://php.net/manual/en/mongodb-driver-writeresult.getserver.php
* @return Server
*/
final public function getServer()
{
}
/**
* Returns the number of documents inserted by an upsert
* @link https://php.net/manual/en/mongodb-driver-writeresult.getupsertedcount.php
* @return int|null
*/
final public function getUpsertedCount()
{
}
/**
* Returns an array of identifiers for upserted documents
* @link https://php.net/manual/en/mongodb-driver-writeresult.getupsertedids.php
* @return array
*/
final public function getUpsertedIds()
{
}
/**
* Returns any write concern error that occurred
* @link https://php.net/manual/en/mongodb-driver-writeresult.getwriteconcernerror.php
* @return WriteConcernError|null
*/
final public function getWriteConcernError()
{
}
/**
* Returns any write errors that occurred
* @link https://php.net/manual/en/mongodb-driver-writeresult.getwriteerrors.php
* @return WriteError[]
*/
final public function getWriteErrors()
{
}
/**
* Returns whether the write was acknowledged
* @link https://php.net/manual/en/mongodb-driver-writeresult.isacknowledged.php
* @return bool
*/
final public function isAcknowledged()
{
}
}
/**
* The MongoDB\Driver\WriteError class encapsulates information about a write error and may be returned as an array element from MongoDB\Driver\WriteResult::getWriteErrors().
*/
final class WriteError
{
final private function __construct()
{
}
final public function __wakeup()
{
}
/**
* Returns the WriteError's error code
* @link https://php.net/manual/en/mongodb-driver-writeerror.getcode.php
* @return int
*/
final public function getCode()
{
}
/**
* Returns the index of the write operation corresponding to this WriteError
* @link https://php.net/manual/en/mongodb-driver-writeerror.getindex.php
* @return int
*/
final public function getIndex()
{
}
/**
* Returns additional metadata for the WriteError
* @link https://php.net/manual/en/mongodb-driver-writeerror.getinfo.php
* @return mixed
*/
final public function getInfo()
{
}
/**
* Returns the WriteError's error message
* @link https://php.net/manual/en/mongodb-driver-writeerror.getmessage.php
* @return string
*/
final public function getMessage()
{
}
}
/**
* The MongoDB\Driver\WriteConcernError class encapsulates information about a write concern error and may be returned by MongoDB\Driver\WriteResult::getWriteConcernError().
* @link https://php.net/manual/en/class.mongodb-driver-writeconcernerror.php
*/
final class WriteConcernError
{
final private function __construct()
{
}
final public function __wakeup()
{
}
/**
* Returns the WriteConcernError's error code
* @link https://php.net/manual/en/mongodb-driver-writeconcernerror.getcode.php
* @return int
*/
final public function getCode()
{
}
/**
* Returns additional metadata for the WriteConcernError
* @link https://php.net/manual/en/mongodb-driver-writeconcernerror.getinfo.php
* @return mixed
*/
final public function getInfo()
{
}
/**
* Returns the WriteConcernError's error message
* @link https://php.net/manual/en/mongodb-driver-writeconcernerror.getmessage.php
* @return string
*/
final public function getMessage()
{
}
}
/**
* Class Session
*
* @link https://secure.php.net/manual/en/class.mongodb-driver-session.php
* @since 1.4.0
*/
final class Session
{
/** @since 1.7.0 */
public const TRANSACTION_NONE = 'none';
/** @since 1.7.0 */
public const TRANSACTION_STARTING = 'starting';
/** @since 1.7.0 */
public const TRANSACTION_IN_PROGRESS = 'in_progress';
/** @since 1.7.0 */
public const TRANSACTION_COMMITTED = 'committed';
/** @since 1.7.0 */
public const TRANSACTION_ABORTED = 'aborted';
/**
* Create a new Session (not used)
* @link https://secure.php.net/manual/en/mongodb-driver-session.construct.php
* @since 1.4.0
*/
final private function __construct()
{
}
final public function __wakeup()
{
}
/**
* Aborts a transaction
* @link https://secure.php.net/manual/en/mongodb-driver-session.aborttransaction.php
* @return void
* @since 1.5.0
*/
final public function abortTransaction()
{
}
/**
* Advances the cluster time for this session
* @link https://secure.php.net/manual/en/mongodb-driver-session.advanceclustertime.php
* @param array|object $clusterTime The cluster time is a document containing a logical timestamp and server signature
* @return void
* @throws \MongoDB\Driver\Exception\InvalidArgumentException On argument parsing errors
* @since 1.4.0
*/
final public function advanceClusterTime($clusterTime)
{
}
/**
* Advances the operation time for this session
* @link https://secure.php.net/manual/en/mongodb-driver-session.advanceoperationtime.php
* @param \MongoDB\BSON\TimestampInterface $timestamp
* @return void
* @throws \MongoDB\Driver\Exception\InvalidArgumentException On argument parsing errors
* @since 1.4.0
*/
final public function advanceOperationTime($timestamp)
{
}
/**
* @link https://secure.php.net/manual/en/mongodb-driver-session.committransaction.php
* @return void
* @throws InvalidArgumentException On argument parsing errors
* @throws CommandException If the server could not commit the transaction (e.g. due to conflicts,
* network issues). In case the exception's MongoDB\Driver\Exception\CommandException::getResultDocument() has a "errorLabels"
* element, and this array contains a "TransientTransactionError" or "UnUnknownTransactionCommitResult" value, it is safe to
* re-try the whole transaction. In newer versions of the driver, MongoDB\Driver\Exception\RuntimeException::hasErrorLabel()
* should be used to test for this situation instead.
* @throws \MongoDB\Driver\Exception\RuntimeException If the transaction could not be committed (e.g. a transaction was not started)
* @since 1.5.0
*/
final public function commitTransaction()
{
}
/**
* This method closes an existing session. If a transaction was associated with this session, this transaction is also aborted,
* and all its operations are rolled back.
*
* @link https://secure.php.net/manual/en/mongodb-driver-session.endsession.php
* @return void
* @throws \MongoDB\Driver\Exception\InvalidArgumentException On argument parsing errors
* @since 1.5.0
*/
final public function endSession()
{
}
/**
* Returns the cluster time for this session
* @link https://secure.php.net/manual/en/mongodb-driver-session.getclustertime.php
* @return object|null
* @throws \MongoDB\Driver\Exception\InvalidArgumentException
* @since 1.4.0
*/
final public function getClusterTime()
{
}
/**
* Returns the logical session ID for this session
* @link https://secure.php.net/manual/en/mongodb-driver-session.getlogicalsessionid.php
* @return object Returns the logical session ID for this session
* @throws \MongoDB\Driver\Exception\InvalidArgumentException
* @since 1.4.0
*/
final public function getLogicalSessionId()
{
}
/**
* Returns the operation time for this session, or NULL if the session has no operation time
* @link https://secure.php.net/manual/en/mongodb-driver-session.getoperationtime.php
* @return \MongoDB\BSON\Timestamp|null
* @throws \MongoDB\Driver\Exception\InvalidArgumentException
* @since 1.4.0
*/
final public function getOperationTime()
{
}
/**
* Returns the server to which this session is pinned, or NULL if the session is not pinned to any server.
* @link https://secure.php.net/manual/en/mongodb-driver-session.getserver.php
* @return \MongoDB\Driver\Server|null
* @throws \MongoDB\Driver\Exception\InvalidArgumentException
* @since 1.6.0
*/
final public function getServer()
{
}
/**
* Returns options for the current transactions, or NULL if no transaction is running.
* @link https://secure.php.net/manual/en/mongodb-driver-session.gettransactionoptions.php
* @return array|null
* @throws \MongoDB\Driver\Exception\InvalidArgumentException
* @since 1.7.0
*/
final public function getTransactionOptions()
{
}
/**
* Returns the current transaction state
* @link https://secure.php.net/manual/en/mongodb-driver-session.gettransactionstate.php
* @return string
* @throws \MongoDB\Driver\Exception\InvalidArgumentException
* @since 1.7.0
*/
final public function getTransactionState()
{
}
/**
* Returns whether a multi-document transaction is in progress.
* @link https://secure.php.net/manual/en/mongodb-driver-session.isintransaction.php
* @return bool
* @throws \MongoDB\Driver\Exception\InvalidArgumentException
* @since 1.6.0
*/
final public function isInTransaction()
{
}
/**
* Starts a transaction
* @link https://secure.php.net/manual/en/mongodb-driver-session.starttransaction.php
* @param array|object $options
* @return void
* @throws \MongoDB\Driver\Exception\InvalidArgumentException On argument parsing errors
* @throws \MongoDB\Driver\Exception\CommandException If the the transaction could not be started because of a server-side problem (e.g. a lock could not be obtained).
* @throws \MongoDB\Driver\Exception\RuntimeException If the the transaction could not be started (e.g. a transaction was already started).
* @since 1.4.0
*/
final public function startTransaction(?array $options = [])
{
}
}
/**
* This interface is implemented by MongoDB\Driver\Cursor but may also be used for type-hinting and userland classes.
* @link https://www.php.net/manual/en/class.mongodb-driver-cursorinterface.php
* @since 1.6.0
*/
interface CursorInterface extends Traversable
{
/**
* Returns the MongoDB\Driver\CursorId associated with this cursor. A cursor ID uniquely identifies the cursor on the server.
* @return CursorId Returns the MongoDB\Driver\CursorId for this cursor.
* @throws InvalidArgumentException
* @link https://www.php.net/manual/en/mongodb-driver-cursorinterface.getid.php
*/
public function getId();
/**
* Returns the MongoDB\Driver\Server associated with this cursor.
* This is the server that executed the MongoDB\Driver\Query or MongoDB\Driver\Command.
* @link https://www.php.net/manual/en/mongodb-driver-cursorinterface.getserver.php
* @return Server Returns the MongoDB\Driver\Server associated with this cursor.
* @throws InvalidArgumentException
*/
public function getServer();
/**
* Checks whether the cursor may have additional results available to read.
* @link https://www.php.net/manual/en/mongodb-driver-cursorinterface.isdead.php
* @return bool Returns TRUE if additional results are not available, and FALSE otherwise.
* @throws InvalidArgumentException
*/
public function isDead();
/**
* Sets a type map to use for BSON unserialization
* @link https://www.php.net/manual/en/mongodb-driver-cursorinterface.settypemap.php
* @param array $typemap Type map configuration.
* @return mixed
* @throws InvalidArgumentException
*/
public function setTypeMap(array $typemap);
/**
* Iterates the cursor and returns its results in an array.
* MongoDB\Driver\CursorInterface::setTypeMap() may be used to control how documents are unserialized into PHP values.
* @return array Returns an array containing all results for this cursor.
* @throws InvalidArgumentException
*/
public function toArray();
}
/**
* The MongoDB\Driver\ClientEncryption class handles creation of data keys for client-side encryption, as well as manually encrypting and decrypting values.
* @link https://www.php.net/manual/en/class.mongodb-driver-clientencryption.php
* @since 1.7.0
*/
final class ClientEncryption
{
public const AEAD_AES_256_CBC_HMAC_SHA_512_DETERMINISTIC = 'AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic';
public const AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM = 'AEAD_AES_256_CBC_HMAC_SHA_512-Random';
final private function __construct()
{
}
final public function __wakeup()
{
}
/**
* Creates a new key document and inserts into the key vault collection.
* @link https://www.php.net/manual/en/mongodb-driver-clientencryption.createdatakey.php
* @param string $kmsProvider The KMS provider ("local" or "aws") that will be used to encrypt the new encryption key.
* @param array $options [optional]
* @return \MongoDB\BSON\Binary Returns the identifier of the new key as a MongoDB\BSON\Binary object with subtype 4 (UUID).
* @throws InvalidArgumentException On argument parsing errors.
* @throws EncryptionException If an error occurs while creating the data key.
*/
final public function createDataKey($kmsProvider, ?array $options = [])
{
}
/**
* Decrypts an encrypted value (BSON binary of subtype 6).
* @link https://www.php.net/manual/en/mongodb-driver-clientencryption.decrypt.php
* @param \MongoDB\BSON\BinaryInterface $keyVaultClient A MongoDB\BSON\Binary instance with subtype 6 containing the encrypted value.
* @return mixed Returns the decrypted value
* @throws InvalidArgumentException On argument parsing errors.
* @throws EncryptionException If an error occurs while decrypting the value.
*/
final public function decrypt(\MongoDB\BSON\BinaryInterface $keyVaultClient)
{
}
/**
* Encrypts a value with a given key and algorithm.
* @link https://www.php.net/manual/en/mongodb-driver-clientencryption.encrypt.php
* @param mixed $value The value to be encrypted. Any value that can be inserted into MongoDB can be encrypted using this method.
* @param array $options [optional]
* @return \MongoDB\BSON\Binary Returns the encrypted value as MongoDB\BSON\Binary object with subtype 6.
* @throws InvalidArgumentException On argument parsing errors.
* @throws EncryptionException If an error occurs while encrypting the value.
*/
final public function encrypt($value, ?array $options = [])
{
}
}
__halt_compiler();----SIGNATURE:----fTT8oeoJ4PAYoK/jBZblB/CA95BAzW4R5bMUHO3gAQ+IOkJuv414ZfRudu6PlR2DbzRuo7i9arkN4aYBwAZKpenNhCmlfVRmZ5P+CtQr4/0N/hhE3jkhdehDFfXvO/HG/Ql+jdZUVnuovIE9PqEVPZeraihxB2SeqzGoJcQXyNz3G39YhJFGYG7/02FcJc1oTLPDWkTlbhMWrguxcYhBL91Kl0x0tBh1l8D4+havlyt5LF09s8hOJ6hNOJdz9ydMPlI/TJZ9qp93MZQfkc5ROtosxv2rNPtFRsAELoygBt55v8UyiFKv+vR+jeO/rNLD8c5R7VRD9sfGR90iU1P0K4OM4dGEDi94k/FVX6mrlO9qwHpQnvw21zEuQ44O/igHyc+BGmFwzNhWJSFOCq+31WMwx+NXi558/IEWqzu6iALWfKLX7YNhuIZsJL3QjDaJRuM6WJNdlvV/XxAtx1lpEzbbAMpbb1X781D1PRmKFb5aRUCF5BFw9NyoRk81gahOIh3QyCmkdHnJVNDDAExFvukIGtnXo6nB5mdeZB/camyVfeM+KRr0GYIhcv7jFnuqPeZx6s7yX5nUDDR4vJ3hbVMSTiSGj0fqQ2w3PJz6BzW6elQnSE9bS/4/j2mCmHXVeW8gnbFzcTFwNZ0zrrWH82GiVBi/6HpyJURuAjdCsBw=----ATTACHMENT:----MzI0OTQyMjYwOTEwNDM1NCA4NzM5OTU3OTY4NDEyMTgyIDQ0MDk1MTg1MzUxODM4NDU=