mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
set default for Position attributes
This commit is contained in:
parent
f27957e91b
commit
315fc7f63a
@ -21,34 +21,34 @@ class Position
|
|||||||
* @ORM\Column(type="integer")
|
* @ORM\Column(type="integer")
|
||||||
* @Serializer\Groups({ "read" })
|
* @Serializer\Groups({ "read" })
|
||||||
*/
|
*/
|
||||||
private $id;
|
private ?int $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="json")
|
* @ORM\Column(type="json")
|
||||||
*/
|
*/
|
||||||
private $label = [];
|
private array $label = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="boolean")
|
* @ORM\Column(type="boolean")
|
||||||
*/
|
*/
|
||||||
private $shareHouseHold;
|
private bool $shareHouseHold = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="boolean")
|
* @ORM\Column(type="boolean")
|
||||||
*/
|
*/
|
||||||
private $allowHolder;
|
private bool $allowHolder = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="float")
|
* @ORM\Column(type="float")
|
||||||
*/
|
*/
|
||||||
private $ordering;
|
private float $ordering = 0.00;
|
||||||
|
|
||||||
public function getId(): ?int
|
public function getId(): ?int
|
||||||
{
|
{
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getLabel(): ?array
|
public function getLabel(): array
|
||||||
{
|
{
|
||||||
return $this->label;
|
return $this->label;
|
||||||
}
|
}
|
||||||
@ -60,7 +60,7 @@ class Position
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getShareHousehold(): ?bool
|
public function getShareHousehold(): bool
|
||||||
{
|
{
|
||||||
return $this->shareHouseHold;
|
return $this->shareHouseHold;
|
||||||
}
|
}
|
||||||
@ -72,12 +72,12 @@ class Position
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getAllowHolder(): ?bool
|
public function getAllowHolder(): bool
|
||||||
{
|
{
|
||||||
return $this->allowHolder;
|
return $this->allowHolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isAllowHolder(): ?bool
|
public function isAllowHolder(): bool
|
||||||
{
|
{
|
||||||
return $this->getAllowHolder();
|
return $this->getAllowHolder();
|
||||||
}
|
}
|
||||||
@ -89,7 +89,7 @@ class Position
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getOrdering(): ?float
|
public function getOrdering(): float
|
||||||
{
|
{
|
||||||
return $this->ordering;
|
return $this->ordering;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user