ReviewWriteService

Implements \ReviewWriteServiceInterface

Class ReviewWriteService

category

System

package

Review

subpackage

Services

Methods

ReviewWriteService constructor.

__construct(\ReviewFactory $reviewFactory) 

Arguments

$reviewFactory

\ReviewFactory

Returns a new instance of review customer.

createCustomer(\IntType $customerId, \StringType $customerName) : \ReviewCustomer

Arguments

$customerId

\IntType

$customerName

\StringType

Response

\ReviewCustomer

Returns new instances of withdrawal entities.

createReview() : \Review

Response

\Review

Deletes review entity from database.

delete(\ReviewInterface $review) : $this|\ReviewWriteServiceInterface

Arguments

$review

\ReviewInterface

Review Entity to be deleted.

Response

$this|\ReviewWriteServiceInterface

Same instance for chained method calls.

Saves review entity in database.

store(\ReviewInterface $review) : $this|\ReviewWriteServiceInterface

Arguments

$review

\ReviewInterface

Review entity to be saved.

Response

$this|\ReviewWriteServiceInterface

Same instance for chained method calls.

Properties

reviewFactory

reviewFactory : \ReviewFactory
var

Type(s)

\ReviewFactory