PHP Interface Sylius\Component\Review\Factory\ReviewFactoryInterface

Author: Grzegorz Sadowski ([email protected])
Inheritance: extends Sylius\Component\Resource\Factory\FactoryInterface
ファイルを表示 Open project: sylius/sylius Interface Usage Examples

Public Methods

Method Description
createForSubject ( Sylius\Component\Review\Model\ReviewableInterface $subject ) : Sylius\Component\Review\Model\ReviewInterface
createForSubjectWithReviewer ( Sylius\Component\Review\Model\ReviewableInterface $subject, Sylius\Component\Review\Model\ReviewerInterface $reviewer = null ) : Sylius\Component\Review\Model\ReviewInterface

Method Details

createForSubject() public method

public createForSubject ( Sylius\Component\Review\Model\ReviewableInterface $subject ) : Sylius\Component\Review\Model\ReviewInterface
$subject Sylius\Component\Review\Model\ReviewableInterface
return Sylius\Component\Review\Model\ReviewInterface

createForSubjectWithReviewer() public method

public createForSubjectWithReviewer ( Sylius\Component\Review\Model\ReviewableInterface $subject, Sylius\Component\Review\Model\ReviewerInterface $reviewer = null ) : Sylius\Component\Review\Model\ReviewInterface
$subject Sylius\Component\Review\Model\ReviewableInterface
$reviewer Sylius\Component\Review\Model\ReviewerInterface
return Sylius\Component\Review\Model\ReviewInterface