Adding a column for community work penalties on Criminal Documents

This commit is contained in:
2023-07-05 16:18:57 +02:00
parent 93891bd18a
commit 30995316ae
7 changed files with 59 additions and 0 deletions

View File

@@ -31,6 +31,12 @@ class Criminal extends Document
*/
private $amountTime;
/**
* @ORM\Column(type="integer", nullable=true)
* @Gedmo\Versioned
*/
private $amountCommunityWork;
/**
* @ORM\Column(type="text", length=4294967295, nullable=true)
* @Gedmo\Versioned
@@ -83,6 +89,18 @@ class Criminal extends Document
return $this;
}
public function getAmountCommunityWork(): ?int
{
return $this->amountCommunityWork;
}
public function setAmountCommunityWork(?int $amountCommunityWork): self
{
$this->amountCommunityWork = $amountCommunityWork;
return $this;
}
public function getContent(): ?string
{
return $this->content;