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

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

        $this->isSeekable = $this->isSeekable && $stream->isSeekable();
        $this->streams[] = $stream;
    }
public function addStream ( IStream $ stream ) : void { if ( ! $ stream -> isReadable ( ) ) { throw new InvalidArgumentException ( 'Stream must be readable' ) ; } $ this -> isSeekable = $ this -> isSeekable && $ stream -> isSeekable ( ) ; $ this -> streams [ ] = $ stream ; }
Adds a stream to the multi-stream

@param IStream $stream The stream to add
@throws InvalidArgumentException Thrown if the stream is not readable
Adds a stream to the multi - stream