protected function createStreamWriter(string $xmlExtension): XmlStreamWriter
    {
        $className = $this->types[$xmlExtension];
        return new $className($this->version, $this->encoding);
    }
protected function createStreamWriter(string $xmlExtension): XmlStreamWriter
    {
        $className = $this->types[$xmlExtension];
        return new $className($this->version, $this->encoding);
    }
protected function createStreamWriter ( string $ xmlExtension ) : XmlStreamWriter { $ className = $ this -> types [ $ xmlExtension ] ; return new $ className ( $ this -> version , $ this -> encoding ) ; }
creates a xml stream writer of the given type

@param   string  $xmlExtension  concrete type to create
@return  \stubbles\xml\XmlStreamWriter
creates a xml stream writer of the given type