source/Internal/Review/Service/ReviewAndRatingMergingService.php
private function mapReviewAndRating($reviewAndRatingData)
    {
        $reviewAndRating = new ReviewAndRating();
        $reviewAndRating
            ->setReviewId($reviewAndRatingData['reviewId'])
            ->setRatingId($reviewAndRatingData['ratingId'])
            ->setRating($reviewAndRatingData['rating'])
            ->setReviewText($reviewAndRatingData['text'])
            ->setObjectId($reviewAndRatingData['objectId'])
            ->setObjectType($reviewAndRatingData['objectType'])
            ->setCreatedAt($reviewAndRatingData['createdAt']);

        return $reviewAndRating;
    }
private function mapReviewAndRating($reviewAndRatingData)
    {
        $reviewAndRating = new ReviewAndRating();
        $reviewAndRating
            ->setReviewId($reviewAndRatingData['reviewId'])
            ->setRatingId($reviewAndRatingData['ratingId'])
            ->setRating($reviewAndRatingData['rating'])
            ->setReviewText($reviewAndRatingData['text'])
            ->setObjectId($reviewAndRatingData['objectId'])
            ->setObjectType($reviewAndRatingData['objectType'])
            ->setCreatedAt($reviewAndRatingData['createdAt']);

        return $reviewAndRating;
    }
private function mapReviewAndRating ( $ reviewAndRatingData ) { $ reviewAndRating = new ReviewAndRating ( ) ; $ reviewAndRating -> setReviewId ( $ reviewAndRatingData [ 'reviewId' ] ) -> setRatingId ( $ reviewAndRatingData [ 'ratingId' ] ) -> setRating ( $ reviewAndRatingData [ 'rating' ] ) -> setReviewText ( $ reviewAndRatingData [ 'text' ] ) -> setObjectId ( $ reviewAndRatingData [ 'objectId' ] ) -> setObjectType ( $ reviewAndRatingData [ 'objectType' ] ) -> setCreatedAt ( $ reviewAndRatingData [ 'createdAt' ] ) ; return $ reviewAndRating ; }
Maps Review and Rating data to ReviewAndRating view object.

@param array $reviewAndRatingData

@return ReviewAndRating
Maps Review and Rating data to ReviewAndRating view object .