PHP Class org\bovigo\vfs\Quota

Since: 1.1.0
Afficher le fichier Open project: mikey179/vfsstream

Méthodes publiques

Méthode 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 méthode

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

isLimited() public méthode

checks if a quota is set
public isLimited ( ) : boolean
Résultat boolean

spaceLeft() public méthode

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

unlimited() public static méthode

create with unlimited space
public static unlimited ( ) : Quota
Résultat Quota