public function __destruct() { FileSystem::resetWorkingDir(); $this->save(); }
/** * Destructs an object and closes the handle. */ public function __destruct() { FileSystem::resetWorkingDir(); if ($this->handle) { closedir($this->handle); } }