/** * @param JobInterface $child */ public function add(JobInterface $child) { $child->setParent($this); $this->children[$child->getName()] = $child; }