From b2f473ed7753395cdff4c6953decb3848bcad538 Mon Sep 17 00:00:00 2001 From: Bozhidar Hristov Date: Mon, 11 Sep 2017 15:04:30 +0300 Subject: [PATCH] Update Description.php Getter for `tags`. --- src/DocBlock/Description.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/DocBlock/Description.php b/src/DocBlock/Description.php index d1d7fc6..c63cae5 100644 --- a/src/DocBlock/Description.php +++ b/src/DocBlock/Description.php @@ -69,6 +69,16 @@ class Description $this->bodyTemplate = $bodyTemplate; $this->tags = $tags; } + + /** + * Returns the tags for this DocBlock. + * + * @return Tag[] + */ + public function getTags() + { + return $this->tags; + } /** * Renders this description as a string where the provided formatter will format the tags in the expected string