protected function makeCollection($value)
    {
        if ($value instanceof Collection) {
            return $value->getName();
        }
        if ($value instanceof Document) {
            return $value->getCollectionId();
        }

        return $value;
    }
protected function makeCollection($value)
    {
        if ($value instanceof Collection) {
            return $value->getName();
        }
        if ($value instanceof Document) {
            return $value->getCollectionId();
        }

        return $value;
    }
protected function makeCollection ( $ value ) { if ( $ value instanceof Collection ) { return $ value -> getName ( ) ; } if ( $ value instanceof Document ) { return $ value -> getCollectionId ( ) ; } return $ value ; }
Turn a value into a collection name

@throws ClientException

@param mixed $value - document, collection or string

@return string - collection name
Turn a value into a collection name