public function render($ret = false)
{
$this->output = $this->indent . '/**' . PHP_EOL;
if (!empty($this->desc)) {
$desc = trim($this->desc);
$descAry = explode("\n", $desc);
$i = 0;
foreach ($descAry as $d) {
$i++;
$this->output .= $this->indent . ' * ' . wordwrap($d, 70, PHP_EOL . $this->indent . " * ") . PHP_EOL;
if ($i < count($descAry)) {
$this->output .= $this->indent . ' * ' . PHP_EOL;
}
}
}
$this->output .= $this->formatTags();
$this->output .= $this->indent . ' */' . PHP_EOL;
if ($ret) {
return $this->output;
} else {
echo $this->output;
}
}