SDK for PHP 3.x

ShapeMap
in package
implements ArrayAccess

Builds shape based on shape references.

Table of Contents

Interfaces

ArrayAccess

Methods

__construct()  : mixed
getShapeNames()  : array<string|int, mixed>
Get an array of shape names.
offsetExists()  : bool
offsetGet()  : mixed
offsetSet()  : void
offsetUnset()  : void
resolve()  : Shape
Resolve a shape reference

Methods

__construct()

public __construct(array<string|int, mixed> $shapeModels) : mixed
Parameters
$shapeModels : array<string|int, mixed>

Associative array of shape definitions.

getShapeNames()

Get an array of shape names.

public getShapeNames() : array<string|int, mixed>
Return values
array<string|int, mixed>

offsetExists()

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed
Tags
throws
BadMethodCallException

offsetUnset()

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed
Tags
throws
BadMethodCallException

resolve()

Resolve a shape reference

public resolve(array<string|int, mixed> $shapeRef) : Shape
Parameters
$shapeRef : array<string|int, mixed>

Shape reference shape

Tags
throws
InvalidArgumentException
Return values
Shape
On this page