phpDocumentor

ReviewAccessRepository
in package
implements ReviewAccessRepositoryInterface

Class ReviewAccessRepository

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

ReviewAccessRepositoryInterface
Interface ReviewAccessRepositoryInterface

Table of Contents

$factory  : ReviewFactory
$reader  : ReviewReaderInterface
__construct()  : mixed
ReviewAccessRepository constructor.
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.
_createCustomer()  : ReviewCustomer
Creates with given array an reviewCustomer.

Properties

Methods

getAverageRatingByProductId()

Returns the average rating by given product id.

public getAverageRatingByProductId(IdType $productId) : float
Parameters
$productId : IdType
Return values
float

Search results