Comment changes ----- setAttribute('comments', []); ----- getComments(); $comments[] = new Comment("// foo"); $stmts[1]->setAttribute('comments', $comments); ----- stmts[0]; $method->setAttribute('comments', [new Comment\Doc("/**\n *\n */")]); ----- setDocComment(new Comment\Doc("/** foo */")); -----