PHP Class LibCloud\Compute\Model\NodeSize

Show file Open project: linkorb/libcloud-php Class Usage Examples

Protected Properties

Property Type Description
$bandwidth integer Amount of bandiwdth included with this size
$disk integer Amount of disk storage (in GB) provided by this image
$extra array Optional provider specific attributes associated with
$id string Size ID
$name string Size name
$price float Price (in US dollars) of running this node for an hour
$provider string Driver this size belongs to
$ram integer Amount of memory (in MB) provided by this size

Public Methods

Method Description
__construct ( $id, $name = null, $ram = null, $disk = null, $bandwidth = null, $price = null, $provider = null, $extra = [] )
getBandwidth ( ) : integer
getDisk ( ) : integer
getExtra ( ) : array
getId ( ) : string
getName ( ) : string
getPrice ( ) : float
getProvider ( ) : string
getRam ( ) : integer
setBandwidth ( integer $bandwidth )
setDisk ( integer $disk )
setExtra ( array $extra )
setId ( string $id )
setName ( string $name )
setPrice ( float $price )
setProvider ( string $provider )
setRam ( integer $ram )

Method Details

__construct() public method

public __construct ( $id, $name = null, $ram = null, $disk = null, $bandwidth = null, $price = null, $provider = null, $extra = [] )

getBandwidth() public method

public getBandwidth ( ) : integer
return integer

getDisk() public method

public getDisk ( ) : integer
return integer

getExtra() public method

public getExtra ( ) : array
return array

getId() public method

public getId ( ) : string
return string

getName() public method

public getName ( ) : string
return string

getPrice() public method

public getPrice ( ) : float
return float

getProvider() public method

public getProvider ( ) : string
return string

getRam() public method

public getRam ( ) : integer
return integer

setBandwidth() public method

public setBandwidth ( integer $bandwidth )
$bandwidth integer

setDisk() public method

public setDisk ( integer $disk )
$disk integer

setExtra() public method

public setExtra ( array $extra )
$extra array

setId() public method

public setId ( string $id )
$id string

setName() public method

public setName ( string $name )
$name string

setPrice() public method

public setPrice ( float $price )
$price float

setProvider() public method

public setProvider ( string $provider )
$provider string

setRam() public method

public setRam ( integer $ram )
$ram integer

Property Details

$bandwidth protected property

Amount of bandiwdth included with this size
protected int $bandwidth
return integer

$disk protected property

Amount of disk storage (in GB) provided by this image
protected int $disk
return integer

$extra protected property

Optional provider specific attributes associated with
protected array $extra
return array

$id protected property

Size ID
protected string $id
return string

$name protected property

Size name
protected string $name
return string

$price protected property

Price (in US dollars) of running this node for an hour
protected float $price
return float

$provider protected property

Driver this size belongs to
protected string $provider
return string

$ram protected property

Amount of memory (in MB) provided by this size
protected int $ram
return integer