public function readLine(): string
{ if (feof($this->out
)) { return '';
} $line =
fgets($this->out
);
if ('' ===
$line || false ===
$line) { $metas =
stream_get_meta_data($this->out
);
if ($metas['timed_out'
]) { throw new TransportException(sprintf('Connection to "%s" timed out.',
$this->
getReadConnectionDescription()));
} if ($metas['eof'
]) { throw new TransportException(sprintf('Connection to "%s" has been closed unexpectedly.',
$this->
getReadConnectionDescription()));
} } $this->debug .=
sprintf('< %s',
$line);
return $line;
}