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

__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.

Details

__construct(string $version, int $total, int $translated, DateTime $updatedOn = null)

No description

Parameters

string $version

the version handle

int $total

the total number of strings (translated and not translated)

int $translated

the number of translated strings

DateTime $updatedOn

The date/time of the last update of the translations (null if and only if $translated is null)

string getVersion()

Get the version handle.

Return Value

string

int getTotal()

Get the total number of strings (translated and not translated).

Return Value

int

int getTranslated()

Get the number of translated strings.

Return Value

int

DateTime|null getUpdatedOn()

Get the date/time of the last update of the translations (null if and only if $translated is null).

Return Value

DateTime|null

int|float getProgress(int $decimals = 0)

Get the translation progress.

Parameters

int $decimals

Return Value

int|float