KiloBytes
KiloBytes
class
KiloBytes extends Bytes
Methods summary
Return Type | Method Name | Description | |
---|---|---|---|
__construct($name = 'Kilobytes', $singlePerUnitName = null, $pluralPerUnitName = null, $prefix = null, $suffix = 'KB') | - | ||
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 = 'Kilobytes', $singlePerUnitName = null, $pluralPerUnitName = null, $prefix = null, $suffix = 'KB')
string
name ()
string
perUnitName ($value)
string
prefix ()
string
suffix ()
decorate ($value)
float|int
roundForType (string|float|int $value)
string
formatForType (string|float|int $value)
string
type ()
Type of data; ie microtime, float, int, currency