public function addStream(StreamInterface $stream): void
    {
        if (! $stream->isReadable()) {
            throw new InvalidArgumentException('Each stream must be readable.');
        }

        // The stream is only seekable if all streams are seekable
        if (! $stream->isSeekable()) {
            $this->seekable = false;
        }

        $this->streams[] = $stream;
    }
public function addStream(StreamInterface $stream): void
    {
        if (! $stream->isReadable()) {
            throw new InvalidArgumentException('Each stream must be readable.');
        }

        // The stream is only seekable if all streams are seekable
        if (! $stream->isSeekable()) {
            $this->seekable = false;
        }

        $this->streams[] = $stream;
    }
public function addStream ( StreamInterface $ stream ) : void { if ( ! $ stream -> isReadable ( ) ) { throw new InvalidArgumentException ( 'Each stream must be readable.' ) ; } // The stream is only seekable if all streams are seekable if ( ! $ stream -> isSeekable ( ) ) { $ this -> seekable = false ; } $ this -> streams [ ] = $ stream ; }
Add a stream to the AppendStream.

@param \Psr\Http\Message\StreamInterface $stream Stream to append. Must be readable.

@throws \Viserio\Component\Contract\Http\Exception\InvalidArgumentException if the stream is not readable
Add a stream to the AppendStream .