This commit is contained in:
philipp lang 2024-12-13 02:40:33 +01:00
parent 98712093b2
commit 1c53e81f1a
7 changed files with 6 additions and 30 deletions

View File

@ -116,11 +116,6 @@ class BdkjHesse extends ContributionDocument
return $member->birthYear(); return $member->birthYear();
} }
public function view(): string
{
return 'tex.contribution.bdkj-hesse';
}
public function setFilename(string $filename): static public function setFilename(string $filename): static
{ {
$this->filename = $filename; $this->filename = $filename;

View File

@ -103,11 +103,6 @@ class CityFrankfurtMainDocument extends ContributionDocument
return $member->age(); return $member->age();
} }
public function view(): string
{
return 'tex.contribution.city-frankfurt-main';
}
public function setFilename(string $filename): static public function setFilename(string $filename): static
{ {
$this->filename = $filename; $this->filename = $filename;

View File

@ -78,11 +78,6 @@ class CityRemscheidDocument extends ContributionDocument
); );
} }
public function view(): string
{
return 'tex.contribution.city-remscheid';
}
public function setFilename(string $filename): static public function setFilename(string $filename): static
{ {
$this->filename = $filename; $this->filename = $filename;

View File

@ -88,11 +88,6 @@ class CitySolingenDocument extends ContributionDocument
return $firstRow . "\n" . $secondRow; return $firstRow . "\n" . $secondRow;
} }
public function view(): string
{
return 'tex.contribution.city-solingen';
}
public function getEngine(): Engine public function getEngine(): Engine
{ {
return Engine::PDFLATEX; return Engine::PDFLATEX;

View File

@ -56,4 +56,10 @@ abstract class ContributionDocument extends Document
{ {
return Template::make('tex.templates.contribution'); return Template::make('tex.templates.contribution');
} }
public function view(): string
{
return 'tex.contribution.' . str(class_basename(static::class))->replace('Document', '')->kebab()->toString();
}
} }

View File

@ -69,11 +69,6 @@ class GallierDocument extends ContributionDocument
); );
} }
public function view(): string
{
return 'tex.contribution.gallier';
}
public function setFilename(string $filename): static public function setFilename(string $filename): static
{ {
$this->filename = $filename; $this->filename = $filename;

View File

@ -99,11 +99,6 @@ class RdpNrwDocument extends ContributionDocument
return $member->age(); return $member->age();
} }
public function view(): string
{
return 'tex.contribution.rdp-nrw';
}
public function setFilename(string $filename): static public function setFilename(string $filename): static
{ {
$this->filename = $filename; $this->filename = $filename;