main: locationType: add defaultFor property

This commit is contained in:
nobohan
2021-11-23 10:41:27 +01:00
parent e3040f4bfb
commit 32af076986
2 changed files with 53 additions and 0 deletions

View File

@@ -29,6 +29,9 @@ class LocationType
public const STATUS_REQUIRED = 'required';
const DEFAULT_FOR_PERSON = 'person';
const DEFAULT_FOR_3PARTY = 'thirdparty';
/**
* @ORM\Column(type="boolean", nullable=true)
* @Serializer\Groups({"read"})
@@ -67,6 +70,13 @@ class LocationType
*/
private array $title = [];
/**
* @ORM\Column(type="string", nullable=true, length=32, unique=true)
* @Serializer\Groups({"read"})
*/
private ?string $defaultFor = null;
public function getActive(): ?bool
{
return $this->active;
@@ -131,4 +141,16 @@ class LocationType
return $this;
}
public function getDefaultFor(): ?string
{
return $this->defaultFor;
}
public function setDefaultFor(string $defaultFor): self
{
$this->defaultFor = $defaultFor;
return $this;
}
}