pool = $pool; $this->config = $config; } /** * @return void * @link https://php.net/manual/en/language.oop5.decon.php */ public function __destruct() { foreach ($this->files as $file) { unlink($file); } } /** * @param string $file * * @return void */ abstract public function saveTo($file); abstract public function display(); }