/** * @param Branch $branch The branch object to add. */ protected function doAddBranch($branch) { $this->collBranchs[] = $branch; $branch->setRepository($this); }