2 namespace TYPO3\CMS\Extbase\Reflection;
42 $this->description =
'';
43 $this->tags = array();
44 $lines = explode(LF, $docComment);
45 foreach ($lines as $line) {
46 if ($line !==
'' && strpos($line,
'@') !==
false) {
47 $this->
parseTag(substr($line, strpos($line,
'@')));
48 }
elseif (empty($this->tags)) {
49 $this->description .= preg_replace(
'/\\s*\\/?[\\\\*]*(.*)$/',
'$1', $line) . LF;
52 $this->description = trim($this->description);
77 throw new \RuntimeException(
'Tag "' . $tagName .
'" does not exist.', 1169128255);
79 return $this->tags[$tagName];
90 return isset($this->tags[$tagName]);
112 $tagAndValue = preg_split(
'/\\s/', $line, 2);
113 $tag = substr($tagAndValue[0], 1);
114 if (count($tagAndValue) > 1) {
115 $this->tags[$tag][] = trim($tagAndValue[1]);
117 $this->tags[$tag] = array();