Cloud/Infrastructure/InstanceList.php

Show: PublicProtectedPrivateinherited
Table of Contents
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
List of instances
Implements
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotected\Zend_Cloud_Infrastructure_Adapter $adapter
>VPropertyprotectedarray $instances = array()

Array of Zend_Cloud_Infrastructure_Instance

Default valuearray()Details
Type
array
>VPropertyprotectedint $iteratorKey = 0

Iterator key

Default value0Details
Type
int

Methods

methodpublic__construct(\Adapter $adapter, array $instances = null) : void

Constructor

Parameters
NameTypeDescription
$adapter\Adapter
$instancesarray
methodprotectedaddInstance( $instance) : \InstanceList

Add an instance

Parameters
NameTypeDescription
$instance
Returns
TypeDescription
\InstanceList
methodprotectedconstructFromArray(array $list) : void

Transforms the Array to array of Instances

Parameters
NameTypeDescription
$listarray
methodpubliccount() : int

Return number of instances

Implement Countable::count()
Returns
TypeDescription
int
methodpubliccurrent() : \Instance

Return the current element

Implement Iterator::current()
Returns
TypeDescription
\Instance
methodpublickey() : int

Return the key of the current element

Implement Iterator::key()
Returns
TypeDescription
int
methodpublicnext() : void

Move forward to next element

Implement Iterator::next()
methodpublicoffsetExists(int $offset) : bool

Whether the offset exists

Implement ArrayAccess::offsetExists()
Parameters
NameTypeDescription
$offsetint
Returns
TypeDescription
bool
methodpublicoffsetGet(int $offset) : \Instance

Return value at given offset

Implement ArrayAccess::offsetGet()
Parameters
NameTypeDescription
$offsetint
Returns
TypeDescription
\Instance
Throws
ExceptionDescription
\Zend_Cloud_Infrastructure_Exception
methodpublicoffsetSet(int $offset, string $value) : void

Throws exception because all values are read-only

Implement ArrayAccess::offsetSet()
Parameters
NameTypeDescription
$offsetint
$valuestring
Throws
ExceptionDescription
\Zend_Cloud_Infrastructure_Exception
methodpublicoffsetUnset(int $offset) : void

Throws exception because all values are read-only

Implement ArrayAccess::offsetUnset()
Parameters
NameTypeDescription
$offsetint
Throws
ExceptionDescription
\Zend_Cloud_Infrastructure_Exception
methodpublicrewind() : void

Rewind the Iterator to the first element

Implement Iterator::rewind()
methodpublicvalid() : bool

Check if there is a current element after calls to rewind() or next()

Implement Iterator::valid()
Returns
TypeDescription
bool
Documentation was generated by phpDocumentor 2.2.0 .