roles = new \Doctrine\Common\Collections\ArrayCollection(); $this->statuses = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set label * * @param array $label * * @return EventType */ public function setName($label) { $this->name = $label; return $this; } /** * Get label * * @return array */ public function getName() { return $this->name; } /** * Set active * * @param boolean $active * * @return EventType */ public function setActive($active) { $this->active = $active; return $this; } /** * Get active * * @return boolean */ public function getActive() { return $this->active; } /** * Add role * * @param \Chill\EventBundle\Entity\Role $role * * @return EventType */ public function addRole(\Chill\EventBundle\Entity\Role $role) { $this->roles[] = $role; return $this; } /** * Remove role * * @param \Chill\EventBundle\Entity\Role $role */ public function removeRole(\Chill\EventBundle\Entity\Role $role) { $this->roles->removeElement($role); } /** * Get roles * * @return \Doctrine\Common\Collections\Collection */ public function getRoles() { return $this->roles; } /** * Add status * * @param \Chill\EventBundle\Entity\Status $status * * @return EventType */ public function addStatus(\Chill\EventBundle\Entity\Status $status) { $this->statuses[] = $status; return $this; } /** * Remove status * * @param \Chill\EventBundle\Entity\Status $status */ public function removeStatus(\Chill\EventBundle\Entity\Status $status) { $this->statuses->removeElement($status); } /** * Get statuses * * @return \Doctrine\Common\Collections\Collection */ public function getStatuses() { return $this->statuses; } }