public function __clone() { parent::__clone(); $this->closeFtpConnection(); $this->fileName = null; $this->fileMatcher = null; }