Interface ReviewReaderInterface

Interface ReviewReaderInterface

Direct known implementers

ReviewReader

Methods summary

public getAll( void ) : array

Returns all review entities as array.

public getById( IdType $id ) : array

Returns review entity data by the given id.

public getAverageRatingByProductId( IdType $productId ) : float

Returns the average rating by given product id.

public getReviewsByProductId( IdType $productId, IdType $languageId ) : array

Returns the reviews by given product id.

public getReviewsByCustomerId( IdType $customerId ) : array

Returns the reviews by given customer ID.