Documentation

ShapeCollection

Table of Contents

Properties

$shapeCollection  : array<int, AbstractShape>
Collection of shapes.

Methods

addShape()  : static
getShapeCollection()  : array<int, AbstractShape>
Get collection of shapes.
searchShapes()  : array<int, AbstractShape>
Search into collection of shapes for a name or/and a type.
setShapeCollection()  : self
Get collection of shapes.
unsetShape()  : static

Properties

Methods

searchShapes()

Search into collection of shapes for a name or/and a type.

public searchShapes([string|null $name = null ][, string|null $type = null ]) : array<int, AbstractShape>
Parameters
$name : string|null = null
$type : string|null = null
Return values
array<int, AbstractShape>

setShapeCollection()

Get collection of shapes.

public setShapeCollection([array<int, AbstractShape$shapeCollection = [] ]) : self
Parameters
$shapeCollection : array<int, AbstractShape> = []
Return values
self

unsetShape()

public unsetShape(int $key) : static
Parameters
$key : int
Return values
static

        
On this page

Search results