original_string: public function read(): string
  	{
  		if ($this->connected() === false)
  		{
  			throw new \Exception('Not connected');
  		}
  
  		$response = '';
  		$continue = true;
  
  		while ($continue == true)
  		{
  			$data = null;
  
  			try
  			{
  				$data = $this->readLine();
  			}
  			catch (\Exception $e)
  			{
  				$continue = false;
  			}
  
  			if (!is_null($data))
  			{
  				$response .= $data;
  			}
  		}
  
  		return $response;
  	}
code: public function read(): string
  	{
  		if ($this->connected() === false)
  		{
  			throw new \Exception('Not connected');
  		}
  
  		$response = '';
  		$continue = true;
  
  		while ($continue == true)
  		{
  			$data = null;
  
  			try
  			{
  				$data = $this->readLine();
  			}
  			catch (\Exception $e)
  			{
  				$continue = false;
  			}
  
  			if (!is_null($data))
  			{
  				$response .= $data;
  			}
  		}
  
  		return $response;
  	}
code_tokens: public function read ( ) : string { if ( $ this -> connected ( ) === false ) { throw new \ Exception ( 'Not connected' ) ; } $ response = '' ; $ continue = true ; while ( $ continue == true ) { $ data = null ; try { $ data = $ this -> readLine ( ) ; } catch ( \ Exception $ e ) { $ continue = false ; } if ( ! is_null ( $ data ) ) { $ response .= $ data ; } } return $ response ; }
docstring: Read all data from the stream.
  @return string
  @throws \Exception
docstring_tokens: Read all data from the stream .