ReviewReaderInterface
in
Interface ReviewReaderInterface
Tags
Table of Contents
- getAll() : array<string|int, mixed>
- Returns all review entities as array.
- getAverageRatingByProductId() : float
- Returns the average rating by given product id.
- getById() : array<string|int, mixed>
- Returns review entity data by the given id.
- getReviewsByCustomerId() : array<string|int, mixed>
- Returns the reviews by given customer ID.
- getReviewsByProductId() : array<string|int, mixed>
- Returns the reviews by given product id.
Methods
getAll()
Returns all review entities as array.
public
getAll() : array<string|int, mixed>
Return values
array<string|int, mixed> —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) : array<string|int, mixed>
Parameters
- $id : IdType
Return values
array<string|int, mixed> —getReviewsByCustomerId()
Returns the reviews by given customer ID.
public
getReviewsByCustomerId(IdType $customerId) : array<string|int, mixed>
Parameters
- $customerId : IdType
Return values
array<string|int, mixed> —getReviewsByProductId()
Returns the reviews by given product id.
public
getReviewsByProductId(IdType $productId, IdType $languageId) : array<string|int, mixed>