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 14f9edf commit c62f459Copy full SHA for c62f459
src/DocBlock.php
@@ -217,4 +217,21 @@ private function addTag(Tag $tag)
217
{
218
$this->tags[] = $tag;
219
}
220
+
221
+ /**
222
+ * Remove a tag from this DocBlock.
223
+ *
224
+ * @param Tag $tag The tag to remove.
225
226
+ * @return void
227
+ */
228
+ public function removeTag(Tag $tagToRemove)
229
+ {
230
+ foreach ($this->tags as $key => $tag) {
231
+ if ($tag === $tagToRemove) {
232
+ unset($this->tags[$key]);
233
+ break;
234
+ }
235
236
237
0 commit comments