src/League/Monga/Database.php
public function collection($collection, $wrap = true)
    {
        $collection = $this->database->selectCollection($collection);
        $wrap && $collection = new Collection($collection);

        return $collection;
    }
public function collection($collection, $wrap = true)
    {
        $collection = $this->database->selectCollection($collection);
        $wrap && $collection = new Collection($collection);

        return $collection;
    }
public function collection ( $ collection , $ wrap = true ) { $ collection = $ this -> database -> selectCollection ( $ collection ) ; $ wrap && $ collection = new Collection ( $ collection ) ; return $ collection ; }
Retrieve a collection

@param string  $collection collection name
@param boolean $wrap       whether to wrap it in a Collection class.

@return mixed Collection instance or MongoCollection instance.
Retrieve a collection