asPosition(), 2); } /** * This override is here for documentation and code completion purposes only. * @return Position */ public function getHolder(){ return $this->holder; } public function onClose(Player $who) : void{ parent::onClose($who); foreach($this->getContents() as $item){ $who->dropItem($item); } $this->clearAll(); } }