Alcaeus\MongoDbAdapter\Tests\TestCase::getCollection PHP 메소드

getCollection() 보호된 메소드

protected getCollection ( string $name = 'test', MongoDB $database = null ) : MongoCollection
$name string
$database MongoDB
리턴 MongoCollection
    protected function getCollection($name = 'test', \MongoDB $database = null)
    {
        if ($database === null) {
            $database = $this->getDatabase();
        }
        return $database->selectCollection($name);
    }