public function close() { if ($this->panel) { $this->panel->snapshotUnitOfWork($this); } parent::close(); }