source/Internal/Review/Service/ReviewAndRatingMergingService.php
public function mergeReviewAndRating(ArrayCollection $reviews, ArrayCollection $ratings)
    {
        $ratingAndReviewList = array_merge(
            $this->getReviewDataWithRating($reviews, $ratings),
            $this->getRatingWithoutReviewData($reviews, $ratings)
        );

        return $this->mapReviewAndRatingList($ratingAndReviewList);
    }
public function mergeReviewAndRating(ArrayCollection $reviews, ArrayCollection $ratings)
    {
        $ratingAndReviewList = array_merge(
            $this->getReviewDataWithRating($reviews, $ratings),
            $this->getRatingWithoutReviewData($reviews, $ratings)
        );

        return $this->mapReviewAndRatingList($ratingAndReviewList);
    }
public function mergeReviewAndRating ( ArrayCollection $ reviews , ArrayCollection $ ratings ) { $ ratingAndReviewList = array_merge ( $ this -> getReviewDataWithRating ( $ reviews , $ ratings ) , $ this -> getRatingWithoutReviewData ( $ reviews , $ ratings ) ) ; return $ this -> mapReviewAndRatingList ( $ ratingAndReviewList ) ; }
Merges Reviews and Ratings to Collection of ReviewAndRating view objects.

@param ArrayCollection $reviews
@param ArrayCollection $ratings

@return ArrayCollection
Merges Reviews and Ratings to Collection of ReviewAndRating view objects .