You are here

public function FnStream::write in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/src/FnStream.php \GuzzleHttp\Psr7\FnStream::write()

Write data to the stream.

Parameters

string $string The string that is to be written.:

Return value

int Returns the number of bytes written to the stream.

Throws

\RuntimeException on failure.

Overrides StreamInterface::write

File

vendor/guzzlehttp/psr7/src/FnStream.php, line 125

Class

FnStream
Compose stream implementations based on a hash of functions.

Namespace

GuzzleHttp\Psr7

Code

public function write($string) {
  return call_user_func($this->_fn_write, $string);
}