The MongoDB\Driver\Session class represents a client session and is returned by MongoDB\Driver\Manager::startSession(). Commands, queries, and write operations may then be associated the session.
$options] ) : void
There is no transaction in progress.
A transaction has been started, but no operation has been sent to the server.
A transaction is in progress.
The transaction was committed.
The transaction was aborted.