'address#', 'd'=>'%date', ]; public function __construct(string $content,int $width,int $startline=1) { $this->fields = collect(); $this->output = $this->parse($startline,$content,$width); } public function __toString(): string { return $this->output; } abstract protected function parse(int $startline,string $content,int $width): string; }