Skip to content

Instantly share code, notes, and snippets.

@clslrns
Created December 3, 2014 08:30
Show Gist options
  • Save clslrns/c64d7c1c3bd5bbc6b012 to your computer and use it in GitHub Desktop.
Save clslrns/c64d7c1c3bd5bbc6b012 to your computer and use it in GitHub Desktop.
MongoCollectionInterface
<?php
interface MongoCollectionInterface
{
public function insert($a, array $options = []);
public function update($old_array_of_fields_OR_object, $new_array_of_fields_OR_object, array $options = []);
public function remove($array_of_fields_OR_object = [], array $options = []);
public function find($query = [], $fields = []);
public function findOne($query = [], $fields = [], array $options = []);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment