main: add order field to civility

This commit is contained in:
nobohan
2021-12-13 12:35:17 +01:00
parent 1fff9ef535
commit b5178c3be3
3 changed files with 48 additions and 1 deletions

View File

@@ -32,6 +32,11 @@ class Civility
*/
private bool $active = true;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private ?int $order = null;
/**
* @ORM\Id
* @ORM\GeneratedValue
@@ -62,6 +67,11 @@ class Civility
return $this->id;
}
public function getOrder(): ?int
{
return $this->order;
}
public function getName(): ?array
{
return $this->name;
@@ -84,6 +94,13 @@ class Civility
return $this;
}
public function setOrder(int $order): self
{
$this->order = $order;
return $this;
}
public function setName(array $name): self
{
$this->name = $name;