We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 623bad2 commit 0d0accfCopy full SHA for 0d0accf
CHANGELOG.md
@@ -3,7 +3,7 @@ Version 3.0.0-dev
3
4
### Added
5
6
-* Added `NodeAbstract::setDocComment()` method.
+* Added `Node::setDocComment()` method.
7
8
Version 3.0.0-beta1 (2016-09-16)
9
--------------------------------
lib/PhpParser/Node.php
@@ -41,6 +41,15 @@ public function setLine($line);
41
*/
42
public function getDocComment();
43
44
+ /**
45
+ * Sets the doc comment of the node.
46
+ *
47
+ * This will either replace an existing doc comment or add it to the comments array.
48
49
+ * @param Comment\Doc $docComment Doc comment to set
50
+ */
51
+ public function setDocComment(Comment\Doc $docComment);
52
+
53
/**
54
* Sets an attribute on a node.
55
*
0 commit comments