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.
2 parents 3dcbd98 + 9b08619 commit 64165bdCopy full SHA for 64165bd
src/Barryvdh/Reflection/DocBlock.php
@@ -439,6 +439,23 @@ public function appendTag(Tag $tag)
439
return $tag;
440
}
441
442
+ /**
443
+ * Deletes a tag from the list of tags.
444
+ *
445
+ * @param Tag $tag The tag to be deleted.
446
447
+ * @return bool True if the tag was deleted.
448
+ */
449
+ public function deleteTag(Tag $tag)
450
+ {
451
+ if (($key = array_search($tag, $this->tags)) !== false) {
452
+ unset($this->tags[$key]);
453
+
454
+ return true;
455
+ }
456
457
+ return false;
458
459
460
/**
461
* Builds a string representation of this object.
0 commit comments