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