RewardPoints
in package

This is the RewardPoints class, a macro class for the documentViewHelper.

The purpose of this class is to encapsulate the logic that calculates the view parameters for the document reward points.

Tags
see
RewardPoints::getViewParameters()

Table of Contents

$class  : string
$document  : AbstractDocumentBase|null
$showHeader  : bool
$showTotalEarned  : bool
$showTotalRedeemed  : bool
__construct() Constructor method for RewardPoints.  : mixed
getViewParameters() This method returns all calculated arguments and new parameters for UserViewHelper.php  : array<string|int, mixed>
getProperties() Return macro use properties  : array<string|int, mixed>

Properties

$document

public AbstractDocumentBase|null $document = null

$showTotalRedeemed

public bool $showTotalRedeemed = true

Methods

__construct()

Constructor method for RewardPoints.

public __construct(array<string|int, mixed> $arguments) : mixed
Parameters
$arguments : array<string|int, mixed>
Tags
see
RewardPoints
Return values
mixed

getViewParameters()

This method returns all calculated arguments and new parameters for UserViewHelper.php

public getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>

getProperties()

Return macro use properties

protected getProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results