mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-02 22:32:12 +02:00
17 lines
298 B
PHP
17 lines
298 B
PHP
<?php
|
|
|
|
namespace MongoDB\Write;
|
|
|
|
interface WriteBatch extends \Countable
|
|
{
|
|
/**
|
|
* @param array|object Operation/document to add to the batch
|
|
*/
|
|
function add($document);
|
|
|
|
/**
|
|
* @return array Array of operations/documents in the batch
|
|
*/
|
|
function getDocuments();
|
|
}
|