You are here

public function FnStream::write in Lockr 7.3

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 134

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);
}