closed; } public function pause() { // NOOP } public function resume() { // NOOP } public function pipe(WritableStreamInterface $dest, array $options = array()) { Util::pipe($this, $dest, $options); return $dest; } public function close() { if ($this->closed) { return; } $this->closed = true; $this->emit('close'); $this->removeAllListeners(); } public function getSize() { return 0; } /** @ignore */ public function __toString() { return ''; } /** @ignore */ public function detach() { return null; } /** @ignore */ public function tell() { throw new \BadMethodCallException(); } /** @ignore */ public function eof() { throw new \BadMethodCallException(); } /** @ignore */ public function isSeekable() { return false; } /** @ignore */ public function seek($offset, $whence = SEEK_SET) { throw new \BadMethodCallException(); } /** @ignore */ public function rewind() { throw new \BadMethodCallException(); } /** @ignore */ public function isWritable() { return false; } /** @ignore */ public function write($string) { throw new \BadMethodCallException(); } /** @ignore */ public function read($length) { throw new \BadMethodCallException(); } /** @ignore */ public function getContents() { return ''; } /** @ignore */ public function getMetadata($key = null) { return ($key === null) ? array() : null; } }