public function parseDocComment($docComment)
{
$this->description = '';
$this->tags = [];
$lines = explode(chr(10), $docComment);
foreach ($lines as $line) {
$line = trim($line);
if ($line === '*/') {
break;
}
if ($line !== '' && strpos($line, '* @') !== false) {
$this->parseTag(substr($line, strpos($line, '@')));
} elseif (count($this->tags) === 0) {
$this->description .= preg_replace('/\\s*\\/?[\\\\*]*\\s?(.*)$/', '$1', $line) . chr(10);
}
}
$this->description = trim($this->description);
}