mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
main: locationType: add defaultFor property
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user