list as $header => $content) { $list[] = '' . e($header) . ' ' . e($content); } return implode("
\n", $list); } public function __toString(): string { $list = []; foreach ($this->list as $header => $content) { $list[] = $header . ' ' . $content; } return implode("\n", $list); } }