mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-06 00:14:36 +02:00
Applied symplify rules to codebase.
This commit is contained in:
parent
2f20d90041
commit
388e847b17
136 changed files with 1370 additions and 789 deletions
|
@ -60,6 +60,7 @@ use App\Entity\Parts\PartTraits\InstockTrait;
|
|||
use App\Entity\Parts\PartTraits\ManufacturerTrait;
|
||||
use App\Entity\Parts\PartTraits\OrderTrait;
|
||||
use App\Security\Annotations\ColumnSecurity;
|
||||
use DateTime;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
@ -82,7 +83,9 @@ class Part extends AttachmentContainingDBElement
|
|||
use ManufacturerTrait;
|
||||
use OrderTrait;
|
||||
|
||||
/** TODO */
|
||||
/**
|
||||
* TODO
|
||||
*/
|
||||
protected $devices;
|
||||
|
||||
/**
|
||||
|
@ -91,16 +94,9 @@ class Part extends AttachmentContainingDBElement
|
|||
*/
|
||||
protected $addedDate;
|
||||
|
||||
/**
|
||||
* @var \DateTime the date when this element was modified the last time
|
||||
* @ColumnSecurity(type="datetime")
|
||||
* @ORM\Column(type="datetime", name="last_modified", options={"default"="CURRENT_TIMESTAMP"})
|
||||
*/
|
||||
protected $lastModified;
|
||||
|
||||
/** *************************************************************
|
||||
* Overridden properties
|
||||
* (They are defined here and not in a trait, to avoid conflicts)
|
||||
* (They are defined here and not in a trait, to avoid conflicts).
|
||||
****************************************************************/
|
||||
|
||||
/**
|
||||
|
@ -117,6 +113,13 @@ class Part extends AttachmentContainingDBElement
|
|||
*/
|
||||
protected $attachments;
|
||||
|
||||
/**
|
||||
* @var DateTime the date when this element was modified the last time
|
||||
* @ColumnSecurity(type="datetime")
|
||||
* @ORM\Column(type="datetime", name="last_modified", options={"default"="CURRENT_TIMESTAMP"})
|
||||
*/
|
||||
protected $lastModified;
|
||||
|
||||
/**
|
||||
* @var Attachment
|
||||
* @ORM\ManyToOne(targetEntity="App\Entity\Attachments\Attachment")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue