source/Application/Model/Article.php
public function getArticleRatingCount($blIncludeVariants = false)
    {
        if (!$blIncludeVariants) {
            return $this->oxarticles__oxratingcnt->value;
        } else {
            $oRating = oxNew(\OxidEsales\Eshop\Application\Model\Rating::class);

            return $oRating->getRatingCount($this->getId(), 'oxarticle', $this->getVariantIds());
        }
    }
public function getArticleRatingCount($blIncludeVariants = false)
    {
        if (!$blIncludeVariants) {
            return $this->oxarticles__oxratingcnt->value;
        } else {
            $oRating = oxNew(\OxidEsales\Eshop\Application\Model\Rating::class);

            return $oRating->getRatingCount($this->getId(), 'oxarticle', $this->getVariantIds());
        }
    }
public function getArticleRatingCount ( $ blIncludeVariants = false ) { if ( ! $ blIncludeVariants ) { return $ this -> oxarticles__oxratingcnt -> value ; } else { $ oRating = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Rating :: class ) ; return $ oRating -> getRatingCount ( $ this -> getId ( ) , 'oxarticle' , $ this -> getVariantIds ( ) ) ; } }
Returns product rating count

@param bool $blIncludeVariants - include variant ratings

@return double
Returns product rating count