Cloud/Infrastructure/InstanceList.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Cloud
- Subpackage
- Infrastructure
\Zend_Cloud_Infrastructure_InstanceList
Package: Zend_Cloud\Infrastructure
Returns
Returns
Throws
Throws
Throws
List of instances
- Implements
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
array $instances = array()
Array of Zend_Cloud_Infrastructure_Instance
Default value
array()
Details- Type
- array
Methods
__construct(\Adapter $adapter, array $instances = null) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$adapter | \Adapter | |
$instances | array |
addInstance( $instance) : \InstanceList
Add an instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$instance |
Type | Description |
---|---|
\InstanceList |
constructFromArray(array $list) : void
Transforms the Array to array of Instances
Parameters
Name | Type | Description |
---|---|---|
$list | array |
current() : \Instance
Return the current element
Implement Iterator::current()
ReturnsType | Description |
---|---|
\Instance |
offsetExists(int $offset) : bool
Whether the offset exists
Implement ArrayAccess::offsetExists()
ParametersName | Type | Description |
---|---|---|
$offset | int |
Type | Description |
---|---|
bool |
offsetGet(int $offset) : \Instance
Return value at given offset
Implement ArrayAccess::offsetGet()
ParametersName | Type | Description |
---|---|---|
$offset | int |
Type | Description |
---|---|
\Instance |
Exception | Description |
---|---|
\Zend_Cloud_Infrastructure_Exception |
offsetSet(int $offset, string $value) : void
Throws exception because all values are read-only
Implement ArrayAccess::offsetSet()
ParametersName | Type | Description |
---|---|---|
$offset | int | |
$value | string |
Exception | Description |
---|---|
\Zend_Cloud_Infrastructure_Exception |
offsetUnset(int $offset) : void
Throws exception because all values are read-only
Implement ArrayAccess::offsetUnset()
ParametersName | Type | Description |
---|---|---|
$offset | int |
Exception | Description |
---|---|
\Zend_Cloud_Infrastructure_Exception |