You are here

public function AppendStream::close in Lockr 7.3

Closes each attached stream.

Overrides StreamInterface::close

File

vendor/guzzlehttp/psr7/src/AppendStream.php, line 72

Class

AppendStream
Reads from multiple streams, one after the other.

Namespace

GuzzleHttp\Psr7

Code

public function close() {
  $this->pos = $this->current = 0;
  $this->seekable = true;
  foreach ($this->streams as $stream) {
    $stream
      ->close();
  }
  $this->streams = [];
}