source/Internal/Review/Service/ReviewAndRatingMergingService.php
private function isReviewRating(Review $review, Rating $rating)
    {
        return $rating->getType() === $review->getType()
            && $rating->getObjectId() === $review->getObjectId()
            && $rating->getRating() === $review->getRating()
            && $rating->getUserId() === $review->getUserId();
    }
private function isReviewRating(Review $review, Rating $rating)
    {
        return $rating->getType() === $review->getType()
            && $rating->getObjectId() === $review->getObjectId()
            && $rating->getRating() === $review->getRating()
            && $rating->getUserId() === $review->getUserId();
    }
private function isReviewRating ( Review $ review , Rating $ rating ) { return $ rating -> getType ( ) === $ review -> getType ( ) && $ rating -> getObjectId ( ) === $ review -> getObjectId ( ) && $ rating -> getRating ( ) === $ review -> getRating ( ) && $ rating -> getUserId ( ) === $ review -> getUserId ( ) ; }
Returns true if Rating belongs to Review.

@param Review $review
@param Rating $rating

@return bool
Returns true if Rating belongs to Review .