SpgrContainer
in package
Table of Contents
Properties
- $children : array<string|int, mixed>
- Shape Container collection.
- $parent : self|null
- Parent Shape Group Container.
Methods
- addChild() : void
- Add a child. This will be either spgrContainer or spContainer.
- getAllSpContainers() : array<string|int, SpContainer>
- Recursively get all spContainers within this spgrContainer.
- getChildren() : array<string|int, mixed>
- Get collection of Shape Containers.
- getParent() : self|null
- Get the parent Shape Group Container if any.
- setParent() : void
- Set parent Shape Group Container.
Properties
$children
Shape Container collection.
private
array<string|int, mixed>
$children
= []
$parent
Parent Shape Group Container.
private
self|null
$parent
= null
Methods
addChild()
Add a child. This will be either spgrContainer or spContainer.
public
addChild(SpgrContainer|SpContainer $child) : void
Parameters
- $child : SpgrContainer|SpContainer
-
child to be added
getAllSpContainers()
Recursively get all spContainers within this spgrContainer.
public
getAllSpContainers() : array<string|int, SpContainer>
Return values
array<string|int, SpContainer>getChildren()
Get collection of Shape Containers.
public
getChildren() : array<string|int, mixed>
Return values
array<string|int, mixed>getParent()
Get the parent Shape Group Container if any.
public
getParent() : self|null
Return values
self|nullsetParent()
Set parent Shape Group Container.
public
setParent(self|null $parent) : void
Parameters
- $parent : self|null