Skip to content

Commit

Permalink
added CommentAware::removeComment()
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 28, 2024
1 parent 9afa824 commit ab6ba23
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/PhpGenerator/Traits/CommentAware.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,11 @@ public function addComment(string $val): static
$this->comment .= $this->comment ? "\n$val" : $val;
return $this;
}


public function removeComment(): static
{
$this->comment = null;
return $this;
}
}

0 comments on commit ab6ba23

Please sign in to comment.