public function writeComment(string $comment): XmlStreamWriter
    {
        return $this->append(
                function(\DOMNode $parent) use ($comment)
                {
                    $parent->appendChild(
                            $this->doc->createComment($this->encode($comment))
                    );
                },
                'comment'
        );
    }
public function writeComment(string $comment): XmlStreamWriter
    {
        return $this->append(
                function(\DOMNode $parent) use ($comment)
                {
                    $parent->appendChild(
                            $this->doc->createComment($this->encode($comment))
                    );
                },
                'comment'
        );
    }
public function writeComment ( string $ comment ) : XmlStreamWriter { return $ this -> append ( function ( \ DOMNode $ parent ) use ( $ comment ) { $ parent -> appendChild ( $ this -> doc -> createComment ( $ this -> encode ( $ comment ) ) ) ; } , 'comment' ) ; }
Write a comment

@param   string  $comment
@return  \stubbles\xml\XmlStreamWriter
Write a comment