source/Internal/Review/Service/UserReviewAndRatingService.php
private function getMergedReviewAndRatingList($userId)
    {
        $reviews = $this->userReviewService->getReviews($userId);
        $ratings = $this->userRatingService->getRatings($userId);

        return $this
            ->reviewAndRatingMergingService
            ->mergeReviewAndRating($reviews, $ratings);
    }
private function getMergedReviewAndRatingList($userId)
    {
        $reviews = $this->userReviewService->getReviews($userId);
        $ratings = $this->userRatingService->getRatings($userId);

        return $this
            ->reviewAndRatingMergingService
            ->mergeReviewAndRating($reviews, $ratings);
    }
private function getMergedReviewAndRatingList ( $ userId ) { $ reviews = $ this -> userReviewService -> getReviews ( $ userId ) ; $ ratings = $ this -> userRatingService -> getRatings ( $ userId ) ; return $ this -> reviewAndRatingMergingService -> mergeReviewAndRating ( $ reviews , $ ratings ) ; }
Returns merged Rating and Review.

@param string $userId

@return ArrayCollection
Returns merged Rating and Review .