TimePeriod
in package
Time class.
Table of Contents
- $unitLabels : array<string|int, mixed>
- Unit labels.
- convertToMinutes() : int
- Convert to minutes.
- getLabel() : mixed
- Get time period label.
Properties
$unitLabels
Unit labels.
public
static array<string|int, mixed>
$unitLabels
= ['d' => 'LBL_DAYS', 'H' => 'LBL_HOURS', 'i' => 'LBL_MINUTES']
Methods
convertToMinutes()
Convert to minutes.
public
static convertToMinutes(string $value) : int
Parameters
- $value : string
Return values
int —getLabel()
Get time period label.
public
static getLabel(string $value) : mixed
Parameters
- $value : string