private setParent ( |
||
$parent |
private function setParent(ECommerceCategory $parent)
{
$this->parent = $parent;
}
public function addChild(ECommerceCategory $child) { $this->children[] = $child; $child->setParent($this); }