ReviewFactory
in package
Class ReviewFactory
Tags
Table of Contents
- $repository : ReviewRepository
- __construct() : mixed
- ReviewFactory constructor.
- createCollection() : ReviewCollection
- Returns new instances of review collections.
- createCustomer() : ReviewCustomer
- Returns a new instance of reviewCustomer.
- createEntity() : Review
- Returns new instances of withdrawal entities.
Properties
$repository
private
ReviewRepository
$repository
Methods
__construct()
ReviewFactory constructor.
public
__construct(ReviewRepositoryInterface $repository) : mixed
Parameters
- $repository : ReviewRepositoryInterface
Return values
mixed —createCollection()
Returns new instances of review collections.
public
createCollection() : ReviewCollection
Return values
ReviewCollection —createCustomer()
Returns a new instance of reviewCustomer.
public
createCustomer(IntType $customerId, StringType $customerName) : ReviewCustomer
Parameters
- $customerId : IntType
- $customerName : StringType
Return values
ReviewCustomer —createEntity()
Returns new instances of withdrawal entities.
public
createEntity() : Review