public function __toString()
{
$doc = '';
$indent = $this->indent;
if (!empty($this->description)) {
$doc = $this->description;
}
if (!empty($this->lines)) {
$lines = array_map(function ($line) use($indent) {
return "{$indent} * {$line}";
}, $this->lines);
if (!empty($doc)) {
$doc .= "\n{$indent} *";
}
$doc .= "\n" . implode("\n", $lines);
}
return $doc === '' ? '' : "{$indent}/**{$doc}\n{$indent} */";
}