player = $player; $this->item = $item; $this->inventorySlot = (int) $inventorySlot; $this->slot = (int) $slot; } public function getSlot(){ return $this->slot; } public function getInventorySlot(){ return $this->inventorySlot; } public function getItem(){ return $this->item; } }