source/Internal/Review/Bridge/UserReviewAndRatingBridge.php
private function getObjectModel($type)
    {
        if ($type === 'oxarticle') {
            $model = oxNew(Article::class);
        }

        if ($type === 'oxrecommlist') {
            $model = oxNew(RecommendationList::class);
        }

        if (!isset($model)) {
            throw new ReviewAndRatingObjectTypeException();
        }

        return $model;
    }
private function getObjectModel($type)
    {
        if ($type === 'oxarticle') {
            $model = oxNew(Article::class);
        }

        if ($type === 'oxrecommlist') {
            $model = oxNew(RecommendationList::class);
        }

        if (!isset($model)) {
            throw new ReviewAndRatingObjectTypeException();
        }

        return $model;
    }
private function getObjectModel ( $ type ) { if ( $ type === 'oxarticle' ) { $ model = oxNew ( Article :: class ) ; } if ( $ type === 'oxrecommlist' ) { $ model = oxNew ( RecommendationList :: class ) ; } if ( ! isset ( $ model ) ) { throw new ReviewAndRatingObjectTypeException ( ) ; } return $ model ; }
Returns object model.

@param string $type

@return Article|RecommendationList
@throws ReviewAndRatingObjectTypeException
Returns object model .