/** * @param BundleAbstract $bundle * @return BundleAbstract */ public function addBundle(BundleAbstract $bundle) { if ($bundle->getParent() === null) { $bundle->setParent($this); } $this->subBundles->addBundle($bundle); return $this; }