public function close(Player $who);
public function removeWindow(Inventory $inventory) { $inventory->close($this); if ($this->windows->contains($inventory)) { $id = $this->windows[$inventory]; $this->windows->detach($this->windowIndex[$id]); unset($this->windowIndex[$id]); } }