slot[$item->inslot] = $item; } public function exist(int $slot): bool { return array_key_exists($slot, $this->slot); } public function get(int $slot): Item { return $this->slot[$slot]; } public function count(): int { return count($this->slot); } public function remove(int $slot): void { array_splice($this->slot, $slot, 1); } }