Overview
  • Namespace
  • Class

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CDN
      • Resource
    • CloudMonitoring
      • Collection
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Log
      • Resource
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Collection
      • Resource
    • Identity
      • Constants
      • Resource
    • Image
      • Enum
      • Resource
        • JsonPatch
        • Schema
    • LoadBalancer
      • Collection
      • Enum
      • Resource
    • Networking
      • Resource
    • ObjectStore
      • Constants
      • Enum
      • Exception
      • Resource
      • Upload
    • Orchestration
      • Resource
    • Queues
      • Collection
      • Exception
      • Resource
    • Volume
      • Resource

Classes

  • AbstractSchemaResource
  • Image
  • Member

Interfaces

  • ImageInterface

Class AbstractSchemaResource

Class that represents abstracted functionality for JSON schema objects. Because the nature of these objects is so dynamic (i.e. their structure is determined by an API-generated schema document), they implement the \ArrayAccess SPL interface. This allows them to be accessed as arrays - which is very useful for undefined properties.

OpenCloud\Common\Base
Extended by OpenCloud\Common\Resource\BaseResource
Extended by OpenCloud\Image\Resource\AbstractSchemaResource implements ArrayAccess

Direct known subclasses

OpenCloud\Image\Resource\Image, OpenCloud\Image\Resource\Member

Abstract
Namespace: OpenCloud\Image\Resource
Package: OpenCloud\Images\Resource
Codecoverageignore
Located at OpenCloud/Image/Resource/AbstractSchemaResource.php

Methods summary

public
# setData( array $data )

Parameters

$data
public array
# getData( )

Returns

array
public
# setId( $id )

Parameters

$id
public string
# getId( )

Returns

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

Sets a value to a particular offset.

Sets a value to a particular offset.

Parameters

$offset
$value

Implementation of

ArrayAccess::offsetSet()
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

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public
# offsetUnset( mixed $offset )

Unset a particular key.

Unset a particular key.

Parameters

$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

Returns

mixed|null

Implementation of

ArrayAccess::offsetGet()

Methods inherited from OpenCloud\Common\Resource\BaseResource

__construct(), findLink(), getClient(), getMetadata(), getParent(), getService(), getUrl(), jsonCollectionElement(), jsonCollectionName(), jsonName(), parseResponse(), resourceName(), setMetadata(), setParent(), setService(), url()

Methods inherited from OpenCloud\Common\Base

__call(), checkJsonError(), generateUuid(), getInstance(), getLogger(), hasLogger(), makeResourceIteratorOptions(), populate(), setLogger(), stripNamespace(), toCamel(), toUnderscores()

Constants summary

Constants inherited from OpenCloud\Common\Base

PATCH_CONTENT_TYPE

API documentation generated by ApiGen