function Node::setLeadingComments
Sets leading comments array
Parameters
Comment[] $comments Comments array:
Return value
$this
1 method overrides Node::setLeadingComments()
- Comment::setLeadingComments in vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Node/ Comment.php - Sets leading comments array
File
-
vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Node/ Node.php, line 84
Class
- Node
- Base class for all the nodes generated by Peast.
Namespace
Peast\Syntax\NodeCode
public function setLeadingComments($comments) {
$this->assertArrayOf($comments, "Comment");
$this->leadingComments = $comments;
return $this;
}