Flow PHP

Unit

Read onlyYes
FinalYes

Methods

absolute()  : self
diff()  : self
fromBytes()  : self
fromGb()  : self
fromKb()  : self
fromMb()  : self
fromString()  : self
inBytes()  : int
inGb()  : float
inKb()  : float
inMb()  : float
isGreaterThan()  : bool
isLowerThan()  : bool
percentage()  : self

Methods

absolute()

public absolute() : self
Return values
self

diff()

public diff(self $unit) : self
Parameters
$unit : self
Return values
self

fromBytes()

public static fromBytes(int $bytes) : self
Parameters
$bytes : int
Return values
self

fromGb()

public static fromGb(int $gb) : self
Parameters
$gb : int
Return values
self

fromKb()

public static fromKb(int $kb) : self
Parameters
$kb : int
Return values
self

fromMb()

public static fromMb(int $mb) : self
Parameters
$mb : int
Return values
self

fromString()

public static fromString(string $memoryString) : self
Parameters
$memoryString : string
Tags
throws
InvalidArgumentException
Return values
self

inBytes()

public inBytes() : int
Return values
int

inGb()

public inGb([int $precision = 2 ]) : float
Parameters
$precision : int = 2
Return values
float

inKb()

public inKb([int $precision = 2 ]) : float
Parameters
$precision : int = 2
Return values
float

inMb()

public inMb([int $precision = 2 ]) : float
Parameters
$precision : int = 2
Return values
float

isGreaterThan()

public isGreaterThan(self $unit) : bool
Parameters
$unit : self
Return values
bool

isLowerThan()

public isLowerThan(self $unit) : bool
Parameters
$unit : self
Return values
bool

percentage()

public percentage(int $value) : self
Parameters
$value : int
Return values
self

        
On this page

Search results