SDK for PHP 3.x

Shape extends AbstractModel
in package

Base class representing a modeled shape.

Table of Contents

Methods

__construct()  : mixed
create()  : mixed
Get a concrete shape for the given definition.
getContextParam()  : mixed
Get a context param definition.
getName()  : string
Get the name of the shape
getType()  : string
Get the type of the shape
offsetExists()  : bool
offsetGet()  : mixed|null
offsetSet()  : void
offsetUnset()  : void
toArray()  : mixed

Methods

__construct()

public __construct(array<string|int, mixed> $definition, ShapeMap $shapeMap) : mixed
Parameters
$definition : array<string|int, mixed>

Service description

$shapeMap : ShapeMap

Shapemap used for creating shapes

create()

Get a concrete shape for the given definition.

public static create(array<string|int, mixed> $definition, ShapeMap $shapeMap) : mixed
Parameters
$definition : array<string|int, mixed>
$shapeMap : ShapeMap
Tags
throws
RuntimeException

if the type is invalid

getContextParam()

Get a context param definition.

public getContextParam() : mixed

getName()

Get the name of the shape

public getName() : string
Return values
string

getType()

Get the type of the shape

public getType() : string
Return values
string

offsetExists()

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

offsetGet()

public offsetGet(mixed $offset) : mixed|null
Parameters
$offset : mixed
Return values
mixed|null

offsetSet()

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

offsetUnset()

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

toArray()

public toArray() : mixed
On this page