ProductSetStatistic
extends ProductSetStatistic
in package
The admin never writes or reads this entity directly.
The dashboard (StatisticsPresenter) goes through ApiBridge to the Api aggregation
endpoint. The leaf exists only for parity with the other e-shop entities (3 layers) and for
DI and hydrator consistency.
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_eshop_product_set_statistics_v2'
- #[TableAlias]
- 'productSetStatistic'
Table of Contents
Constants
- TYPE_VIEWS : mixed = 'views'
- Metric type: product detail view (front `registerEvent`).
Properties
- $count : int
- $date : string|null
- $productSetId : int|null
- $type : string|null
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getCount() : int
- getDate() : string|null
- getProductSetId() : int|null
- getType() : string|null
- setCount() : $this
- setDate() : $this
- setProductSetId() : $this
- setType() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Constants
TYPE_VIEWS
Metric type: product detail view (front `registerEvent`).
public
mixed
TYPE_VIEWS
= 'views'
Properties
$count
protected
int
$count
= 0
Attributes
- #[Column]
- $name: 'count'
- $type: 'integer'
- $options: ['unsigned' => true]
$date
protected
string|null
$date
= null
Attributes
- #[Column]
- $name: 'date'
- $type: 'string'
- #[Id]
- #[Identity]
$productSetId
protected
int|null
$productSetId
= null
Attributes
- #[Column]
- $name: 'cms_mod_eshop_product_sets_product_set_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$type
protected
string|null
$type
= null
Attributes
- #[Column]
- $name: 'type'
- $type: 'string'
- $length: 20
- #[Id]
- #[Identity]
Methods
__construct()
public
__construct([int|null $productSetId = null ][, string|null $type = null ][, string|null $date = null ][, int $count = 0 ]) : mixed
Parameters
- $productSetId : int|null = null
- $type : string|null = null
- $date : string|null = null
- $count : int = 0
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAllTraits()
Returns all traits the class uses, including those used by parent classes and nested traits.
public
getAllTraits() : array<string, string>
Return values
array<string, string>getCount()
public
getCount() : int
Return values
intgetDate()
public
getDate() : string|null
Return values
string|nullgetProductSetId()
public
getProductSetId() : int|null
Return values
int|nullgetType()
public
getType() : string|null
Return values
string|nullsetCount()
public
setCount(int $count) : $this
Parameters
- $count : int
Return values
$thissetDate()
public
setDate(string|null $date) : $this
Parameters
- $date : string|null
Return values
$thissetProductSetId()
public
setProductSetId(int|null $productSetId) : $this
Parameters
- $productSetId : int|null
Return values
$thissetType()
public
setType(string|null $type) : $this
Parameters
- $type : string|null
Return values
$thisgetTraitsRecursive()
Walks the trait list recursively and collects nested traits too.
private
static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
- $traits : array<string, string>