Skip to content

Commit 1070e66

Browse files
ancprumvriel
authored andcommitted
Make getter for bodyTemplate public in order to make conversion of existig Description to custom Description class easier (e.g. new MyDescriptionClass($origionalDescription->getBodyTemplate(), $origionalDescription->getTags();)
1 parent 51b7739 commit 1070e66

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/DocBlock/Description.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ public function __construct(string $bodyTemplate, array $tags = [])
6767
$this->bodyTemplate = $bodyTemplate;
6868
$this->tags = $tags;
6969
}
70+
71+
/**
72+
* Returns the body template
73+
* @return string
74+
*/
75+
public function getBodyTemplate(): string
76+
{
77+
return $this->bodyTemplate;
78+
}
7079

7180
/**
7281
* Returns the tags for this DocBlock.

0 commit comments

Comments
 (0)