48 $this->children[] = $child;
49 $child->setParent($this);
67 $allSpContainers = [];
69 foreach ($this->children as $child) {
70 if ($child instanceof
self) {
71 $allSpContainers = array_merge($allSpContainers, $child->getAllSpContainers());
73 $allSpContainers[] = $child;
77 return $allSpContainers;
An exception for terminatinating execution or to throw for unit testing.
getChildren()
Get collection of Shape Containers.
getParent()
Get the parent Shape Group Container if any.
addChild($child)
Add a child.
setParent($parent)
Set parent Shape Group Container.
getAllSpContainers()
Recursively get all spContainers within this spgrContainer.