original_string: public function close() {
  		if (isset($this->handle) && $this->handle != null) {
  			$this->handle->close();
  			$this->handle = false;
  			$this->onConnectionClose(new Event(['sender' => $this]));
  		}
  	}
code: public function close() {
  		if (isset($this->handle) && $this->handle != null) {
  			$this->handle->close();
  			$this->handle = false;
  			$this->onConnectionClose(new Event(['sender' => $this]));
  		}
  	}
code_tokens: public function close ( ) { if ( isset ( $ this -> handle ) && $ this -> handle != null ) { $ this -> handle -> close ( ) ; $ this -> handle = false ; $ this -> onConnectionClose ( new Event ( [ 'sender' => $ this ] ) ) ; } }
docstring: Close FTP connection.
  
  @throws FtpException Raised when error occured when closing FTP connection.
docstring_tokens: Close FTP connection .