groupCenters = new \Doctrine\Common\Collections\ArrayCollection(); } /** * @return string */ public function __toString() { return $this->getName(); } /** * @return $this */ public function addGroupCenter(GroupCenter $groupCenter) { $this->groupCenters->add($groupCenter); return $this; } /** * @return $this|Center */ public function getCenter() { return $this; } /** * @return ArrayCollection|Collection */ public function getGroupCenters() { return $this->groupCenters; } /** * @return int */ public function getId() { return $this->id; } /** * @return string */ public function getName() { return $this->name; } /** * @param $name * * @return $this */ public function setName($name) { $this->name = $name; return $this; } }