ReviewReadServiceInterface
in
Interface ReviewReadServiceInterface
Tags
Table of Contents
- getAll() : ReviewCollection
- Returns all review entities as array.
- getAverageRatingByProductId() : float
- Returns the average rating by given product id.
- getById() : Review
- Returns review entity data by the given id.
- getReviewsByCustomerId() : ReviewCollection
- Returns the reviews by given customer ID.
- getReviewsByProductId() : ReviewCollection
- Returns the reviews by given product id.
Methods
getAll()
Returns all review entities as array.
public
getAll() : ReviewCollection
Return values
ReviewCollection —getAverageRatingByProductId()
Returns the average rating by given product id.
public
getAverageRatingByProductId(IdType $productId) : float
Parameters
- $productId : IdType
Return values
float —getById()
Returns review entity data by the given id.
public
getById(IdType $id) : Review
Parameters
- $id : IdType
Return values
Review —getReviewsByCustomerId()
Returns the reviews by given customer ID.
public
getReviewsByCustomerId(IdType $customerId) : ReviewCollection
Parameters
- $customerId : IdType
Return values
ReviewCollection —getReviewsByProductId()
Returns the reviews by given product id.
public
getReviewsByProductId(IdType $productId, IdType $languageId) : ReviewCollection