src/MongoMinify/Collection.php
public function findAndModify(array $query, array $update = array(), array $fields = null, array $options = array())
    {
        $document = new Document($query, $this);
        $findAndModify = $document->findAndModify($update, $fields, $options);

        return $findAndModify;
    }
public function findAndModify(array $query, array $update = array(), array $fields = null, array $options = array())
    {
        $document = new Document($query, $this);
        $findAndModify = $document->findAndModify($update, $fields, $options);

        return $findAndModify;
    }
public function findAndModify ( array $ query , array $ update = array ( ) , array $ fields = null , array $ options = array ( ) ) { $ document = new Document ( $ query , $ this ) ; $ findAndModify = $ document -> findAndModify ( $ update , $ fields , $ options ) ; return $ findAndModify ; }
Find and Modify Document
Find and Modify Document