src/Entity/DocumentCategoryAttachment.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocumentCategoryAttachmentRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=DocumentCategoryAttachmentRepository::class)
  8.  * @Auditable()
  9.  */
  10. class DocumentCategoryAttachment
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Attachment::class)
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $attachment;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=DocumentCategory::class)
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $documentCategory;
  28.     /**
  29.      * @ORM\Column(type="boolean")
  30.      */
  31.     private $isDeleted;
  32.     /**
  33.      * @ORM\Column(type="datetime", nullable=true)
  34.      */
  35.     private $dateCreate;
  36.     /**
  37.      * @ORM\Column(type="datetime", nullable=true)
  38.      */
  39.     private $dateUpdate;
  40.     /**
  41.      * @ORM\Column(type="boolean", nullable=true)
  42.      */
  43.     private $isMandatory;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=Users::class)
  46.      */
  47.     private $userCreate;
  48.     /**
  49.      * @ORM\ManyToOne(targetEntity=Users::class)
  50.      */
  51.     private $userUpdate;
  52.     public function getId(): ?int
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getAttachment(): ?Attachment
  57.     {
  58.         return $this->attachment;
  59.     }
  60.     public function setAttachment(?Attachment $attachment): self
  61.     {
  62.         $this->attachment $attachment;
  63.         return $this;
  64.     }
  65.     public function getDocumentCategory(): ?DocumentCategory
  66.     {
  67.         return $this->documentCategory;
  68.     }
  69.     public function setDocumentCategory(?DocumentCategory $documentCategory): self
  70.     {
  71.         $this->documentCategory $documentCategory;
  72.         return $this;
  73.     }
  74.     public function getIsDeleted(): ?bool
  75.     {
  76.         return $this->isDeleted;
  77.     }
  78.     public function setIsDeleted(bool $isDeleted): self
  79.     {
  80.         $this->isDeleted $isDeleted;
  81.         return $this;
  82.     }
  83.     public function getDateCreate(): ?\DateTimeInterface
  84.     {
  85.         return $this->dateCreate;
  86.     }
  87.     public function setDateCreate(?\DateTimeInterface $dateCreate): self
  88.     {
  89.         $this->dateCreate $dateCreate;
  90.         return $this;
  91.     }
  92.     public function getDateUpdate(): ?\DateTimeInterface
  93.     {
  94.         return $this->dateUpdate;
  95.     }
  96.     public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
  97.     {
  98.         $this->dateUpdate $dateUpdate;
  99.         return $this;
  100.     }
  101.     public function getIsMandatory(): ?bool
  102.     {
  103.         return $this->isMandatory;
  104.     }
  105.     public function setIsMandatory(?bool $isMandatory): self
  106.     {
  107.         $this->isMandatory $isMandatory;
  108.         return $this;
  109.     }
  110.     public function getUserCreate(): ?Users
  111.     {
  112.         return $this->userCreate;
  113.     }
  114.     public function setUserCreate(?Users $userCreate): self
  115.     {
  116.         $this->userCreate $userCreate;
  117.         return $this;
  118.     }
  119.     public function getUserUpdate(): ?Users
  120.     {
  121.         return $this->userUpdate;
  122.     }
  123.     public function setUserUpdate(?Users $userUpdate): self
  124.     {
  125.         $this->userUpdate $userUpdate;
  126.         return $this;
  127.     }
  128. }