PHP Class Sylius\Bundle\CoreBundle\Remover\ReviewerReviewsRemover

Author: Grzegorz Sadowski ([email protected])
Inheritance: implements Sylius\Bundle\CoreBundle\Remover\ReviewerReviewsRemoverInterface
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( EntityRepository $reviewRepository, Doctrine\Common\Persistence\ObjectManager $reviewManager, Sylius\Bundle\ReviewBundle\Updater\ReviewableRatingUpdaterInterface $averageRatingUpdater )
removeReviewerReviews ( Sylius\Component\Review\Model\ReviewerInterface $author )

Private Methods

Method Description
removeReviewsAndExtractSubject ( Sylius\Component\Review\Model\ReviewInterface $review, array $reviewSubjectsToRecalculate ) : array

Method Details

__construct() public method

public __construct ( EntityRepository $reviewRepository, Doctrine\Common\Persistence\ObjectManager $reviewManager, Sylius\Bundle\ReviewBundle\Updater\ReviewableRatingUpdaterInterface $averageRatingUpdater )
$reviewRepository Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository
$reviewManager Doctrine\Common\Persistence\ObjectManager
$averageRatingUpdater Sylius\Bundle\ReviewBundle\Updater\ReviewableRatingUpdaterInterface

removeReviewerReviews() public method

public removeReviewerReviews ( Sylius\Component\Review\Model\ReviewerInterface $author )
$author Sylius\Component\Review\Model\ReviewerInterface