Imbo\Auth\AccessControl\Adapter\Mongo::getGroupsCollection PHP Method

getGroupsCollection() private method

Get the resource groups mongo collection
private getGroupsCollection ( ) : MongoDB\Collection
return MongoDB\Collection
    private function getGroupsCollection()
    {
        if ($this->aclGroupCollection === null) {
            try {
                $this->aclGroupCollection = $this->getMongoClient()->selectCollection($this->params['databaseName'], 'accesscontrolgroup');
            } catch (MongoException $e) {
                throw new DatabaseException('Could not select collection', 500, $e);
            }
        }
        return $this->aclGroupCollection;
    }