private getTypesContent ( ) : string | ||
return | string |
private function getTypesContent()
{
if (null === $this->typesContent) {
$name = $this->getTag()->getName();
if (!$this->supportTypes()) {
throw new \RuntimeException('This tag does not support types.');
}
$tagSplit = preg_split('/\\s*\\@' . $name . '\\s*/', $this->lines[0]->getContent(), 2);
$spaceSplit = preg_split('/\\s/', $tagSplit[1], 2);
$this->typesContent = $spaceSplit[0];
}
return $this->typesContent;
}