source/Internal/Review/Dao/RatingDao.php
private function mapRatings($ratingsData)
    {
        $ratings = new ArrayCollection();

        foreach ($ratingsData as $ratingData) {
            $rating = new Rating();
            $ratings->add($this->mapper->map($rating, $ratingData));
        }

        return $ratings;
    }
private function mapRatings($ratingsData)
    {
        $ratings = new ArrayCollection();

        foreach ($ratingsData as $ratingData) {
            $rating = new Rating();
            $ratings->add($this->mapper->map($rating, $ratingData));
        }

        return $ratings;
    }
private function mapRatings ( $ ratingsData ) { $ ratings = new ArrayCollection ( ) ; foreach ( $ ratingsData as $ ratingData ) { $ rating = new Rating ( ) ; $ ratings -> add ( $ this -> mapper -> map ( $ rating , $ ratingData ) ) ; } return $ ratings ; }
Maps rating data from database to Ratings Collection.

@param array $ratingsData

@return ArrayCollection
Maps rating data from database to Ratings Collection .