public function attach(string $stream, string $mode = null): void
    {
        $this->setStream($stream, $mode);
    }
public function attach(string $stream, string $mode = null): void
    {
        $this->setStream($stream, $mode);
    }
public function attach ( string $ stream , string $ mode = null ) : void { $ this -> setStream ( $ stream , $ mode ) ; }
Attaches a new stream.

@param string $stream The stream
@param string $mode   [optional] The mode

@throws \Valkyrja\HttpMessage\Exceptions\InvalidStream

@return void
Attaches a new stream .