HasDurationLogs
Table of Contents
- $defaultDurationFrequencies : array<string|int, mixed>
- Defines at what duration score is to be reset
- $defaultScoreTypes : array<string|int, mixed>
- Defines what to score
- $defaultScoreWithDetail : bool
- Defines whether secondory key is to be looged or not
- duration_logs() : MorphMany
- Relation
- getDurationFrequencies() : array<string|int, mixed>
- Get duration frequency of logging After every this durtion a new records is to be inserted, otherwise existiing record is to be updated
- getScoreTypes() : array<string|int, mixed>
- Get score types to be logged
- getScoreWithDetail() : bool
- Get score with detail or not
Properties
$defaultDurationFrequencies
Defines at what duration score is to be reset
protected
array<string|int, mixed>
$defaultDurationFrequencies
= [\V360\DurationLogger\Enums\DurationFrequency::DAY, \V360\DurationLogger\Enums\DurationFrequency::YEAR]
$defaultScoreTypes
Defines what to score
protected
array<string|int, mixed>
$defaultScoreTypes
= [\V360\DurationLogger\Enums\ScoreType::DEVICE_TYPE, \V360\DurationLogger\Enums\ScoreType::BROWSER_FAMILY, \V360\DurationLogger\Enums\ScoreType::PLATFORM_FAMILY]
$defaultScoreWithDetail
Defines whether secondory key is to be looged or not
protected
bool
$defaultScoreWithDetail
= false
Methods
duration_logs()
Relation
public
duration_logs() : MorphMany
Return values
MorphMany —getDurationFrequencies()
Get duration frequency of logging After every this durtion a new records is to be inserted, otherwise existiing record is to be updated
public
getDurationFrequencies() : array<string|int, mixed>
Return values
array<string|int, mixed> —getScoreTypes()
Get score types to be logged
public
getScoreTypes() : array<string|int, mixed>
Return values
array<string|int, mixed> —getScoreWithDetail()
Get score with detail or not
public
getScoreWithDetail() : bool