Alcaeus\MongoDbAdapter\Tests\TestCase::getGridFS PHP Method

getGridFS() protected method

protected getGridFS ( string $prefix = 'fs', MongoDB $database = null ) : MongoGridFS
$prefix string
$database MongoDB
return MongoGridFS
    protected function getGridFS($prefix = 'fs', \MongoDB $database = null)
    {
        if ($database === null) {
            $database = $this->getDatabase();
        }
        return $database->getGridFS($prefix);
    }