PHP Class org\bovigo\vfs\Quota

Since: 1.1.0
Datei anzeigen Open project: mikey179/vfsstream

Public Methods

Method Description
__construct ( integer $amount ) constructor
isLimited ( ) : boolean checks if a quota is set
spaceLeft ( integer $usedSpace ) : integer checks if given used space exceeda quota limit
unlimited ( ) : Quota create with unlimited space

Method Details

__construct() public method

constructor
public __construct ( integer $amount )
$amount integer quota in bytes

isLimited() public method

checks if a quota is set
public isLimited ( ) : boolean
return boolean

spaceLeft() public method

checks if given used space exceeda quota limit
public spaceLeft ( integer $usedSpace ) : integer
$usedSpace integer
return integer

unlimited() public static method

create with unlimited space
public static unlimited ( ) : Quota
return Quota