public function close() { if ($this->handle) { fclose($this->handle); $this->handle = null; $this->type = null; $this->str = null; } }