forked from mirror/Part-DB.Part-DB-server
Applied symplify rules to codebase.
This commit is contained in:
parent
2f20d90041
commit
388e847b17
136 changed files with 1370 additions and 789 deletions
|
@ -63,6 +63,17 @@ use Doctrine\ORM\Mapping as ORM;
|
|||
*/
|
||||
class DevicePart extends DBElement
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
* @ORM\Column(type="integer", name="quantity")
|
||||
*/
|
||||
protected $quantity;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @ORM\Column(type="text", name="mountnames")
|
||||
*/
|
||||
protected $mountnames;
|
||||
/**
|
||||
* @var Device
|
||||
* @ORM\ManyToOne(targetEntity="Device", inversedBy="parts")
|
||||
|
@ -77,18 +88,6 @@ class DevicePart extends DBElement
|
|||
*/
|
||||
protected $part;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
* @ORM\Column(type="integer", name="quantity")
|
||||
*/
|
||||
protected $quantity;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @ORM\Column(type="text", name="mountnames")
|
||||
*/
|
||||
protected $mountnames;
|
||||
|
||||
/**
|
||||
* Returns the ID as an string, defined by the element class.
|
||||
* This should have a form like P000014, for a part with ID 14.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue