Animation
in package
uses
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
$shapeCollection
Collection of shapes.
protected
array<int, AbstractShape>
$shapeCollection
= []
Methods
addShape()
public
addShape(AbstractShape $shape) : static
Parameters
- $shape : AbstractShape
Return values
staticgetShapeCollection()
Get collection of shapes.
public
getShapeCollection() : array<int, AbstractShape>
Return values
array<int, AbstractShape>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
selfunsetShape()
public
unsetShape(int $key) : static
Parameters
- $key : int