mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 11:24:31 +02:00
Use typed properties
This commit is contained in:
parent
548ec2ea50
commit
51e05a8669
216 changed files with 603 additions and 698 deletions
|
@ -70,7 +70,7 @@ trait InstockTrait
|
|||
* @Assert\PositiveOrZero()
|
||||
* @ColumnSecurity(prefix="minamount", type="integer")
|
||||
*/
|
||||
protected $minamount = 0;
|
||||
protected float $minamount = 0;
|
||||
|
||||
/**
|
||||
* @var ?MeasurementUnit the unit in which the part's amount is measured
|
||||
|
@ -78,7 +78,7 @@ trait InstockTrait
|
|||
* @ORM\JoinColumn(name="id_part_unit", referencedColumnName="id", nullable=true)
|
||||
* @ColumnSecurity(type="object", prefix="unit")
|
||||
*/
|
||||
protected $partUnit;
|
||||
protected ?MeasurementUnit $partUnit = null;
|
||||
|
||||
/**
|
||||
* Get all part lots where this part is stored.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue