Stats
class Stats (View source)
Properties
protected string | $version | The version handle. |
|
protected int | $total | The total number of strings (translated and not translated). |
|
protected int | $translated | The number of translated strings. |
|
protected DateTime|null | $updatedOn | The date/time of the last update of the translations (null if and only if $translated is null). |
Methods
No description
Get the version handle.
Get the total number of strings (translated and not translated).
Get the number of translated strings.
Get the date/time of the last update of the translations (null if and only if $translated is null).
Get the translation progress.
Details
__construct(string $version, int $total, int $translated, DateTime $updatedOn = null)
No description
string
getVersion()
Get the version handle.
int
getTotal()
Get the total number of strings (translated and not translated).
int
getTranslated()
Get the number of translated strings.
DateTime|null
getUpdatedOn()
Get the date/time of the last update of the translations (null if and only if $translated is null).
int|float
getProgress(int $decimals = 0)
Get the translation progress.