PhpParser\Node::setDocComment PHP Method

setDocComment() public method

This will either replace an existing doc comment or add it to the comments array.
public setDocComment ( Comment\Doc $docComment )
$docComment Comment\Doc Doc comment to set
    public function setDocComment(Comment\Doc $docComment);