source/Internal/Review/Dao/ReviewDao.php
private function mapReviews($reviewsData)
    {
        $reviews = new ArrayCollection();

        foreach ($reviewsData as $reviewData) {
            $review = new Review();
            $reviews[] = $this->mapper->map($review, $reviewData);
        }

        return $reviews;
    }
private function mapReviews($reviewsData)
    {
        $reviews = new ArrayCollection();

        foreach ($reviewsData as $reviewData) {
            $review = new Review();
            $reviews[] = $this->mapper->map($review, $reviewData);
        }

        return $reviews;
    }
private function mapReviews ( $ reviewsData ) { $ reviews = new ArrayCollection ( ) ; foreach ( $ reviewsData as $ reviewData ) { $ review = new Review ( ) ; $ reviews [ ] = $ this -> mapper -> map ( $ review , $ reviewData ) ; } return $ reviews ; }
Maps rating data from database to Reviews Collection.

@param array $reviewsData

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