Lines Matching defs:stream
5 * Compose stream implementations based on a hash of functions.
7 * Allows for easy testing and extension of a provided stream without needing
44 * The close method is called on the underlying stream only if possible.
54 * Adds custom functionality to an underlying stream by intercepting
57 * @param StreamInterface $stream Stream to decorate
62 public static function decorate(StreamInterface $stream, array $methods)
65 // proxy to the decorated stream.
67 $methods[$diff] = [$stream, $diff];
88 public function attach($stream)
90 return call_user_func($this->_fn_attach, $stream);