public function renderHeader($header, $type, $prefix = '')
{
$class = $this->getMetaClass($type);
$out = [$prefix . $class->getStartDelimiter()];
foreach (preg_split('{\\r?\\n}', trim($header)) as $line) {
// avoid trailing spaces
$out[] = $prefix . ' ' . $class->getDelimiter() . ($line ? ' ' . $line : '');
}
$out[] = $prefix . ' ' . $class->getEndDelimiter();
$out[] = $prefix . "\n";
return implode("\n", $out);
}