ReviewRepository

Implements \ReviewRepositoryInterface

Class ReviewRepository

category

System

package

Review

subpackage

Repositories

Methods

ReviewRepository constructor.

__construct(\ReviewWriterInterface $writer, \ReviewDeleterInterface $deleter) 

Arguments

Deletes review entity from database.

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

Arguments

$review

\ReviewInterface

Review entity to de deleted.

Response

$this|\ReviewRepositoryInterface

Same instance for chained method calls.

Saves review entity in database.

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

Arguments

$review

\ReviewInterface

Review entity to be saved.

Response

$this|\ReviewRepositoryInterface

Same instance for chained method calls.

Properties

writer

writer : \ReviewWriterInterface

deleter

deleter : \ReviewDeleterInterface