lib/Doctrine/MongoDB/Connection.php
public function setMongo($mongoClient)
    {
        if ( ! ($mongoClient instanceof \MongoClient || $mongoClient instanceof \Mongo)) {
            throw new \InvalidArgumentException('MongoClient or Mongo instance required');
        }

        $this->mongoClient = $mongoClient;
    }
public function setMongo($mongoClient)
    {
        if ( ! ($mongoClient instanceof \MongoClient || $mongoClient instanceof \Mongo)) {
            throw new \InvalidArgumentException('MongoClient or Mongo instance required');
        }

        $this->mongoClient = $mongoClient;
    }
public function setMongo ( $ mongoClient ) { if ( ! ( $ mongoClient instanceof \ MongoClient || $ mongoClient instanceof \ Mongo ) ) { throw new \ InvalidArgumentException ( 'MongoClient or Mongo instance required' ) ; } $ this -> mongoClient = $ mongoClient ; }
Set the MongoClient instance to wrap.

@deprecated 1.1 Will be removed for 2.0
@param \MongoClient $mongoClient
Set the MongoClient instance to wrap .