GigaBytes

class GigaBytes extends Bytes

Methods summary

Return Type Method Name Description
__construct($name = 'Gigabytes', $singlePerUnitName = null, $pluralPerUnitName = null, $prefix = null, $suffix = 'GB') -
string name() - from AbstractUnit
string perUnitName($value) - from AbstractUnit
string prefix() - from AbstractUnit
string suffix() - from AbstractUnit
decorate($value) - from AbstractUnit
float|int roundForType(string|float|int $value) - from AbstractUnit
string formatForType(string|float|int $value) - from AbstractUnit
string type() Type of data; ie microtime, float, int, currency from FloatingPoint
static  convert($value, $from, $to) - from Bytes

Details

__construct ($name = 'Gigabytes', $singlePerUnitName = null, $pluralPerUnitName = null, $prefix = null, $suffix = 'GB')

Parameters

$name
$singlePerUnitName
$pluralPerUnitName
$prefix
$suffix

string name ()

Return Value

string

string perUnitName ($value)

Parameters

$value

Return Value

string

string prefix ()

Return Value

string

string suffix ()

Return Value

string

decorate ($value)

Parameters

$value

float|int roundForType (string|float|int $value)

Parameters

string|float|int $value

Return Value

float|int

string formatForType (string|float|int $value)

Parameters

string|float|int $value

Return Value

string

string type ()

Type of data; ie microtime, float, int, currency

Return Value

string

static convert ($value, $from, $to)

Parameters

$value
$from
$to