Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 /**
  * (non-PHPdoc)
  * @see \Rizza\CalendarBundle\Model\CalendarInterface::removeEvent()
  */
 public function removeEvent(EventInterface $event)
 {
     if ($this->events->contains($event)) {
         $this->events->removeElement($event);
     }
 }