# Class ArrayCollection

A generic, abstract collection class that allows collections to exhibit array functionality.

  OpenCloud\Common\ArrayAccess implements ArrayAccess
  OpenCloud\Common\Collection\ArrayCollection implements Countable

#### Direct known subclasses

OpenCloud\Common\Collection\ResourceIterator

#### Indirect known subclasses

OpenCloud\Common\Collection\PaginatedIterator, OpenCloud\DNS\Collection\DnsIterator
Abstract
Namespace: OpenCloud\Common\Collection
Package: OpenCloud\Common\Collection
Located at OpenCloud/Common/Collection/ArrayCollection.php

Methods summary
`public` | # `__construct( array $data = array() )` #### Parameters $data `array` $data #### Overrides `OpenCloud\Common\ArrayAccess::__construct()`
`public integer` | # `count( )` #### Returns `integer` #### Implementation of `Countable::count()`
`public mixed` | # `setElements( array $data = array() )` #### Parameters $data `array` $data #### Returns `mixed` $this
`public` | # `append( mixed $value )` Appends a value to the container. Appends a value to the container. #### Parameters $value `mixed` $value
`public boolean` | # `valueExists( mixed $value )` Checks to see whether a particular value exists. Checks to see whether a particular value exists. #### Parameters $value `mixed` $value #### Returns `boolean`

Methods inherited from OpenCloud\Common\ArrayAccess
`offsetExists(), offsetGet(), offsetSet(), offsetUnset()`

Properties summary
`protected array` | $elements | `` | # The elements being held by this iterator. The elements being held by this iterator.