src/danog/MadelineProto/Stream/ConnectionContext.php
public function addStream(string $streamName, $extra = null): self
    {
        $this->nextStreams[] = [$streamName, $extra];
        $this->key = count($this->nextStreams) - 1;

        return $this;
    }
public function addStream(string $streamName, $extra = null): self
    {
        $this->nextStreams[] = [$streamName, $extra];
        $this->key = count($this->nextStreams) - 1;

        return $this;
    }
public function addStream ( string $ streamName , $ extra = null ) : self { $ this -> nextStreams [ ] = [ $ streamName , $ extra ] ; $ this -> key = count ( $ this -> nextStreams ) - 1 ; return $ this ; }
Add a stream to the stream chain.

@param string $streamName
@param any    $extra

@return self
Add a stream to the stream chain .