isEmpty($rating) && $rating instanceof Rating) { $ratedobjectuid = $rating->getRatedobjectuid(); if (empty($ratedobjectuid)) { $this->addError( LocalizationUtility::translate('error.validator.rating.ratedobjectuid', 'ThRating'), 1283536994 ); } if (!$rating->getRatingobject() instanceof Ratingobject) { $this->addError( LocalizationUtility::translate('error.validator.rating.ratingobject', 'ThRating'), 1283538549 ); } } else { $this->addError(LocalizationUtility::translate('error.validator.rating.empty', 'ThRating'), 1568138421); } } }