Skip to content

Commit 4512403

Browse files
authored
Update Description.php
Getter for `tags`.
1 parent 7a666b8 commit 4512403

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/DocBlock/Description.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ public function __construct($bodyTemplate, array $tags = [])
6969
$this->bodyTemplate = $bodyTemplate;
7070
$this->tags = $tags;
7171
}
72+
73+
/**
74+
* Returns the tags for this DocBlock.
75+
*
76+
* @return Tag[]
77+
*/
78+
public function getTags()
79+
{
80+
return $this->tags;
81+
}
7282

7383
/**
7484
* Renders this description as a string where the provided formatter will format the tags in the expected string

0 commit comments

Comments
 (0)