feat: additional jobprofile infotext

This commit is contained in:
Björn Fromme
2024-01-31 20:09:38 +01:00
parent 9ae2988c1a
commit 2a9e1232ec
6 changed files with 65 additions and 5 deletions
+15 -4
View File
@@ -41,6 +41,9 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
#[Assert\NotNull(message: 'Bitte gib das Jobprofil an')]
private ?JobProfile $jobProfile = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $jobProfileInfo = null;
#[ORM\Column(nullable: true)]
#[Assert\Range(min: 1, minMessage: 'Die Mindestanzahl ist 1')]
private ?int $availableDispositions = 1;
@@ -119,10 +122,6 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
$instance->addFee($fee);
});
$assignment->getDocuments()->map(function (Upload $document) use ($instance) {
$instance->addDocument($document);
});
return $instance;
}
@@ -160,6 +159,18 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
return $this;
}
public function getJobProfileInfo(): ?string
{
return $this->jobProfileInfo;
}
public function setJobProfileInfo(?string $jobProfileInfo): static
{
$this->jobProfileInfo = $jobProfileInfo;
return $this;
}
public function getAvailableDispositions(): ?int
{
return $this->availableDispositions;