src/Entity/PdfmenuDocument.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Traits\Activeable;
  4. use App\Traits\Creatable;
  5. use App\Traits\Deleteable;
  6. use App\Traits\Updateable;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. /**
  10.  * @ORM\Table(name="`pdfmenu_document`")
  11.  * @ORM\Entity(repositoryClass="App\Repository\PdfmenuDocumentRepository")
  12.  * @Gedmo\SoftDeleteable(fieldName="deletedAt")
  13.  * @ORM\HasLifecycleCallbacks()
  14.  */
  15. class PdfmenuDocument
  16. {
  17.     use CreatableUpdateableDeleteableActiveable;
  18.     /**
  19.      * @ORM\Id
  20.      * @ORM\Column(type="integer")
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      */
  23.     private ?int $id null;
  24.     /**
  25.      * @var ?string
  26.      *
  27.      * @ORM\Column(name="name", type="string", nullable=true)
  28.      */
  29.     private ?string $name null;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity="App\Entity\Institution", inversedBy="pdfmenuDocuments")
  32.      * @ORM\JoinColumn(name="institution_id", referencedColumnName="id")
  33.      */
  34.     private ?Institution $institution null;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity="App\Entity\Document", cascade={"persist", "remove"})
  37.      * @ORM\JoinColumn(name="document_id", referencedColumnName="id")
  38.      */
  39.     private ?Document $document null;
  40.     /**
  41.      * @ORM\Column(name="position", type="integer")
  42.      */
  43.     private ?int $position;
  44.     /**
  45.      * @var boolean
  46.      * @ORM\Column(name="is_emenu", type="boolean")
  47.      */
  48.     private bool $isEmenu;
  49.     /**
  50.      * @var boolean
  51.      * @ORM\Column(name="is_distrimenu", type="boolean")
  52.      */
  53.     private bool $isDistrimenu;
  54.     /**
  55.      * @var boolean
  56.      * @ORM\Column(name="is_bkarte", type="boolean")
  57.      */
  58.     private bool $isBkarte;
  59.     public function __construct()
  60.     {
  61.         $this->isEmenu false;
  62.         $this->isDistrimenu false;
  63.         $this->isBkarte false;
  64.     }
  65.     public function getId(): ?int
  66.     {
  67.         return $this->id;
  68.     }
  69.     public function getName(): ?string
  70.     {
  71.         return $this->name;
  72.     }
  73.     public function setName(?string $name): self
  74.     {
  75.         $this->name $name;
  76.         return $this;
  77.     }
  78.     public function getPosition(): ?int
  79.     {
  80.         return $this->position;
  81.     }
  82.     public function setPosition(int $position): self
  83.     {
  84.         $this->position $position;
  85.         return $this;
  86.     }
  87.     public function getInstitution(): ?Institution
  88.     {
  89.         return $this->institution;
  90.     }
  91.     public function setInstitution(?Institution $institution): self
  92.     {
  93.         $this->institution $institution;
  94.         return $this;
  95.     }
  96.     public function getDocument(): ?Document
  97.     {
  98.         return $this->document;
  99.     }
  100.     public function setDocument(?Document $document): self
  101.     {
  102.         $this->document $document;
  103.         return $this;
  104.     }
  105.     public function isEmenu(): ?bool
  106.     {
  107.         return $this->isEmenu;
  108.     }
  109.     public function setIsEmenu(bool $isEmenu): self
  110.     {
  111.         $this->isEmenu $isEmenu;
  112.         return $this;
  113.     }
  114.     public function isDistrimenu(): ?bool
  115.     {
  116.         return $this->isDistrimenu;
  117.     }
  118.     public function setIsDistrimenu(bool $isDistrimenu): self
  119.     {
  120.         $this->isDistrimenu $isDistrimenu;
  121.         return $this;
  122.     }
  123.     public function isBkarte(): ?bool
  124.     {
  125.         return $this->isBkarte;
  126.     }
  127.     public function setIsBkarte(bool $isBkarte): self
  128.     {
  129.         $this->isBkarte $isBkarte;
  130.         return $this;
  131.     }
  132. }