Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Created by PhpStorm.
- * User: silentium
- * Date: 9/23/14
- * Time: 4:42 PM
- */
- class MongoWriteBatch {
- /* Константы */
- const COMMAND_INSERT = 1;
- const COMMAND_UPDATE = 2;
- const COMMAND_DELETE = 3;
- /* Методы */
- protected function __construct(MongoCollection $collection, $batch_type = MongoWriteBatch::COMMAND_INSERT, $write_options = []) {}
- /**
- * @param array $item
- * @return bool
- */
- public function add(array $item) {}
- /**
- * @param array $write_options
- * @return array
- */
- public function execute(array $write_options) {}
- }
- class MongoInsertBatch extends MongoWriteBatch {
- /* Методы */
- public function __construct(MongoCollection $collection, array $write_options = []) {}
- }
- class MongoUpdateBatch extends MongoWriteBatch {
- /* Методы */
- public function __construct(MongoCollection $collection, array $write_options = []) {}
- }
- class MongoDeleteBatch extends MongoWriteBatch {
- /* Методы */
- public function __construct(MongoCollection $collection, array $write_options = []) {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement