public function readLine(): string
	{
		if ($this->connected() === false)
		{
			throw new \Exception('Not connected');
		}

		$response = fgets($this->connection);

		if ($response === false)
		{
			throw new \Exception('Nothing to read');
		}

		return $response;
	}
public function readLine(): string
	{
		if ($this->connected() === false)
		{
			throw new \Exception('Not connected');
		}

		$response = fgets($this->connection);

		if ($response === false)
		{
			throw new \Exception('Nothing to read');
		}

		return $response;
	}
public function readLine ( ) : string { if ( $ this -> connected ( ) === false ) { throw new \ Exception ( 'Not connected' ) ; } $ response = fgets ( $ this -> connection ) ; if ( $ response === false ) { throw new \ Exception ( 'Nothing to read' ) ; } return $ response ; }
Read a line of data from the stream.
@return string
@throws \Exception
Read a line of data from the stream .