holder = $holder; parent::__construct(2); } public function onClose(Player $who) : void{ parent::onClose($who); foreach($this->getContents() as $item){ $who->dropItem($item); } $this->clearAll(); } }