FetchAllCustomerReviewsActions
extends AbstractAction
in package
Class FetchAllCustomerReviewsActions
Tags
Table of Contents
- $textManager : TextManager
- $url : Url
- $languageId : int
- $productRepository : CustomerProductRepository
- $service : CustomerReviewReadService
- __construct() : mixed
- __invoke() : Response
- This method will be called in order to process the incoming request.
- handle() : Response
- Executes the business logic of the incoming request.
- initAbstractAction() : void
- Module action initialization.
- translate() : string
- Translates the section phrase.
- addProductInformationToDataArray() : void
Properties
$textManager
protected
TextManager
$textManager
$url
protected
Url
$url
$languageId
private
int
$languageId
$productRepository
private
CustomerProductRepository
$productRepository
$service
private
CustomerReviewReadService
$service
Methods
__construct()
public
__construct(CustomerReviewReadService $service, CustomerProductRepository $productRepository, UserPreferences $preferences) : mixed
Parameters
- $service : CustomerReviewReadService
- $productRepository : CustomerProductRepository
- $preferences : UserPreferences
Return values
mixed —__invoke()
This method will be called in order to process the incoming request.
public
__invoke(Request $request, Response $response) : Response
Parameters
Return values
Response —handle()
Executes the business logic of the incoming request.
public
handle(Request $request, Response $response) : Response
Parameters
Tags
Return values
Response —initAbstractAction()
Module action initialization.
public
initAbstractAction(Url $url, TextManager $textManager) : void
Parameters
- $url : Url
- $textManager : TextManager
Return values
void —translate()
Translates the section phrase.
protected
translate(string $phrase, string $section[, int|null $languageId = null ]) : string
Parameters
- $phrase : string
- $section : string
- $languageId : int|null = null
Return values
string —addProductInformationToDataArray()
private
addProductInformationToDataArray(array<string|int, mixed> &$data) : void
Parameters
- $data : array<string|int, mixed>