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
booloffsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
Tags
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
Tags
resolve()
Resolve a shape reference
public
resolve(array<string|int, mixed> $shapeRef) : Shape
Parameters
- $shapeRef : array<string|int, mixed>
-
Shape reference shape