mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-11 10:54:34 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
f7c2f1032f
commit
21a81486df
24 changed files with 64 additions and 84 deletions
|
@ -40,13 +40,6 @@ use App\Validator\Constraints\Selectable;
|
|||
|
||||
trait BasicPropertyTrait
|
||||
{
|
||||
/**
|
||||
* @var string The name of this part
|
||||
* @ORM\Column(type="string")
|
||||
* @ColumnSecurity(prefix="name")
|
||||
*/
|
||||
protected $name = '';
|
||||
|
||||
/**
|
||||
* @var string A text describing what this part does
|
||||
* @ORM\Column(type="text")
|
||||
|
@ -182,7 +175,7 @@ trait BasicPropertyTrait
|
|||
* @param Category $category The new category of this part
|
||||
* @return self
|
||||
*/
|
||||
public function setCategory(Category $category): Part
|
||||
public function setCategory(Category $category): self
|
||||
{
|
||||
$this->category = $category;
|
||||
return $this;
|
||||
|
@ -196,7 +189,7 @@ trait BasicPropertyTrait
|
|||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setFootprint(?Footprint $new_footprint): Part
|
||||
public function setFootprint(?Footprint $new_footprint): self
|
||||
{
|
||||
$this->footprint = $new_footprint;
|
||||
return $this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue