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();)

This commit is contained in:
Andreas Prucha - Abexto
2020-02-12 07:52:22 +01:00
committed by Mike van Riel
parent 51b773933d
commit 1070e666aa
+9
View File
@@ -67,6 +67,15 @@ class Description
$this->bodyTemplate = $bodyTemplate; $this->bodyTemplate = $bodyTemplate;
$this->tags = $tags; $this->tags = $tags;
} }
/**
* Returns the body template
* @return string
*/
public function getBodyTemplate(): string
{
return $this->bodyTemplate;
}
/** /**
* Returns the tags for this DocBlock. * Returns the tags for this DocBlock.