Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Identity
      • Log
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Resource
    • LoadBalancer
      • Resource
    • ObjectStore
      • Constants
      • Exception
      • Resource
      • Upload
    • Orchestration
    • Queues
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • ArrayCollection
  • PaginatedIterator
  • ResourceIterator
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class ArrayCollection

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

OpenCloud\Common\Collection\ArrayCollection implements ArrayAccess, Countable

Direct known subclasses

OpenCloud\Common\Collection\ResourceIterator

Indirect known subclasses

OpenCloud\Common\Collection\PaginatedIterator
Abstract
Namespace: OpenCloud\Common\Collection
Package: OpenCloud\Common\Collection
Since: 1.8.0
Located at OpenCloud/Common/Collection/ArrayCollection.php
Methods summary
public
# __construct( array $data = array() )

Parameters

$data
array
$data
public integer
# count( )

Returns

integer

Implementation of

Countable::count()
public mixed
# setElements( array $data = array() )

Parameters

$data
array
$data

Returns

mixed
$this
public
# offsetSet( mixed $offset, mixed $value )

Sets a value to a particular offset.

Sets a value to a particular offset.

Parameters

$offset
mixed
$offset
$value
mixed
$value

Implementation of

ArrayAccess::offsetSet()
public
# append( mixed $value )

Appends a value to the container.

Appends a value to the container.

Parameters

$value
mixed
$value
public boolean
# offsetExists( mixed $offset )

Checks to see whether a particular offset key exists.

Checks to see whether a particular offset key exists.

Parameters

$offset
mixed
$offset

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
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
public
# offsetUnset( mixed $offset )

Unset a particular key.

Unset a particular key.

Parameters

$offset
mixed
$offset

Implementation of

ArrayAccess::offsetUnset()
public mixed|null
# offsetGet( mixed $offset )

Get the value for a particular offset key.

Get the value for a particular offset key.

Parameters

$offset
mixed
$offset

Returns

mixed|null

Implementation of

ArrayAccess::offsetGet()
Properties summary
protected array $elements
#

The elements being held by this iterator.

The elements being held by this iterator.

PHP OpenCloud API API documentation generated by ApiGen 2.8.0