Example #1
0
 /**
  * @param string $slot
  * @throws WrongSlot
  */
 public function setSlot($slot)
 {
     if (in_array($slot, Item::getAllSlotNames())) {
         $this->slot = $slot;
     } else {
         throw new WrongSlot($slot);
     }
 }