/** * Add ban of a champion for this game * * @param Doctrine\Common\Collections\Collection $bans * @return Game */ public function addBans(Champion $ban) { if (!$this->bans->contains($ban)) { $this->bans->add($ban); } return $this; }
/** * Add item for this participant * * @param Doctrine\Common\Collections\Collection $items * @return Participant */ public function addItems(Item $item) { if (!$this->items->contains($item)) { $this->items->add($item); } return $this; }
/** * (non-PHPdoc) * @see \Rizza\CalendarBundle\Model\CalendarInterface::removeEvent() */ public function removeEvent(EventInterface $event) { if ($this->events->contains($event)) { $this->events->removeElement($event); } }