40 $this->description =
'';
41 $this->tags = array();
42 $lines = explode(chr(10), $docComment);
43 foreach ($lines as $line) {
44 if (strlen($line) > 0 && strpos($line,
'@') !== FALSE) {
45 $this->
parseTag(substr($line, strpos($line,
'@')));
46 } elseif (count($this->tags) === 0) {
47 $this->description .= preg_replace(
'/\\s*\\/?[\\\\*]*(.*)$/',
'$1', $line) . chr(10);
50 $this->description = trim($this->description);
73 throw new \RuntimeException(
'Tag "' . $tagName .
'" does not exist.', 1169128255);
75 return $this->tags[$tagName];
85 return isset($this->tags[$tagName]);
105 $tagAndValue = preg_split(
'/\\s/', $line, 2);
106 $tag = substr($tagAndValue[0], 1);
107 if (count($tagAndValue) > 1) {
108 $this->tags[$tag][] = trim($tagAndValue[1]);
110 $this->tags[$tag] = array();