PreferredPeriod
in package
implements
JsonSerializable
Interfaces, Classes and Traits
- JsonSerializable
Table of Contents
- $period : string
- $periods : array<string|int, string>
- __construct() : mixed
- Constructor.
- jsonSerialize() : string
- value() : string
- Return value.
Properties
$period
private
string
$period
$periods
private
array<string|int, string>
$periods
= ['today', 'thisweek', 'last7days', 'thismonth', 'last28days', 'thisyear', 'last12months']
Methods
__construct()
Constructor.
public
__construct(string $period) : mixed
Parameters
- $period : string
Return values
mixed —jsonSerialize()
public
jsonSerialize() : string
Tags
Return values
string —value()
Return value.
public
value() : string