src/Entity/DocumentCategory.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocumentCategoryRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  7. /**
  8.  * @ORM\Entity(repositoryClass=DocumentCategoryRepository::class)
  9.  * @Auditable()
  10.  *
  11.  * 
  12.  */
  13. class DocumentCategory
  14. {
  15.     /**
  16.      * @ORM\Id()
  17.      * @ORM\GeneratedValue()
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $label;
  25.     /**
  26.      * @ORM\Column(type="string", length=64, nullable=true)
  27.      */
  28.     private $number;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity=Services::class)
  31.      * @ORM\JoinColumn(nullable=false)
  32.      */
  33.     private $service;
  34.     /**
  35.      * @ORM\Column(type="text", nullable=true)
  36.      */
  37.     private $htmlModel;
  38.     /**
  39.      * @ORM\Column(type="boolean", nullable=true)
  40.      */
  41.     private $isDeleted;
  42.     /**
  43.      * @ORM\Column(type="datetime", nullable=true)
  44.      */
  45.     private $dateCreate;
  46.     /**
  47.      * @ORM\Column(type="datetime", nullable=true)
  48.      */
  49.     private $dateUpdate;
  50.     /**
  51.      * @ORM\Column(type="integer", nullable=true)
  52.      */
  53.     private $status;
  54.     /**
  55.      * @ORM\ManyToOne(targetEntity=Users::class)
  56.      */
  57.     private $userCreate;
  58.     /**
  59.      * @ORM\ManyToOne(targetEntity=Users::class)
  60.      */
  61.     private $userUpdate;
  62.     /**
  63.      * @ORM\Column(type="boolean", nullable=true)
  64.      */
  65.     private $isBaseDocument;
  66.     /**
  67.      * @ORM\Column(type="boolean", nullable=false, options={"default" : 0})
  68.      */
  69.     private $canAddIdentity;
  70.     /**
  71.      * @ORM\Column(type="boolean", nullable=false, options={"default" : 0})
  72.      */
  73.     private $canSelectSameIdentity;
  74.      /**
  75.      * @ORM\Column(type="integer", nullable=true, options={"default" : null})
  76.      */
  77.     private $anchorBeneficiaire;
  78.     /**
  79.      * @ORM\Column(type="boolean")
  80.      */
  81.     private $forInternetUser;
  82.     /**
  83.      * @ORM\Column(type="boolean", nullable=true)
  84.      */
  85.     private $isPublished;
  86.     /**
  87.      * @ORM\Column(type="string", length=255, nullable=true)
  88.      */
  89.     private $iconClass;
  90.     public function __construct()
  91.     {
  92.         $this->isDeleted false;
  93.         $this->dateCreate = new \DateTime();
  94.         $this->forInternetUser false;
  95.     }
  96.     public function getId(): ?int
  97.     {
  98.         return $this->id;
  99.     }
  100.     public function getLabel(): ?string
  101.     {
  102.         return $this->label;
  103.     }
  104.     public function setLabel(string $label): self
  105.     {
  106.         $this->label $label;
  107.         return $this;
  108.     }
  109.     public function getNumber(): ?string
  110.     {
  111.         return $this->number;
  112.     }
  113.     public function setNumber(string $number): self
  114.     {
  115.         $this->number $number;
  116.         return $this;
  117.     }
  118.     public function getService(): ?Services
  119.     {
  120.         return $this->service;
  121.     }
  122.     public function setService(?Services $service): self
  123.     {
  124.         $this->service $service;
  125.         return $this;
  126.     }
  127.     public function getHtmlModel(): ?string
  128.     {
  129.         return $this->htmlModel;
  130.     }
  131.     public function setHtmlModel(?string $htmlModel): self
  132.     {
  133.         $this->htmlModel $htmlModel;
  134.         return $this;
  135.     }
  136.     public function getIsDeleted(): ?bool
  137.     {
  138.         return $this->isDeleted;
  139.     }
  140.     public function setIsDeleted(?bool $isDeleted): self
  141.     {
  142.         $this->isDeleted $isDeleted;
  143.         return $this;
  144.     }
  145.     public function getDateCreate(): ?\DateTimeInterface
  146.     {
  147.         return $this->dateCreate;
  148.     }
  149.     public function setDateCreate(?\DateTimeInterface $dateCreate): self
  150.     {
  151.         $this->dateCreate $dateCreate;
  152.         return $this;
  153.     }
  154.     public function getDateUpdate(): ?\DateTimeInterface
  155.     {
  156.         return $this->dateUpdate;
  157.     }
  158.     public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
  159.     {
  160.         $this->dateUpdate $dateUpdate;
  161.         return $this;
  162.     }
  163.     public function getStatus(): ?int
  164.     {
  165.         return $this->status;
  166.     }
  167.     public function setStatus(?int $status): self
  168.     {
  169.         $this->status $status;
  170.         return $this;
  171.     }
  172.     public function getAnchorBeneficiaire(): ?int
  173.     {
  174.         return $this->anchorBeneficiaire;
  175.     }
  176.     public function setAnchorBeneficiaire(?int $anchorBeneficiaire): self
  177.     {
  178.         $this->anchorBeneficiaire $anchorBeneficiaire;
  179.         return $this;
  180.     }
  181.     public function getUserCreate(): ?Users
  182.     {
  183.         return $this->userCreate;
  184.     }
  185.     public function setUserCreate(?Users $userCreate): self
  186.     {
  187.         $this->userCreate $userCreate;
  188.         return $this;
  189.     }
  190.     public function getUserUpdate(): ?Users
  191.     {
  192.         return $this->userUpdate;
  193.     }
  194.     public function setUserUpdate(?Users $userUpdate): self
  195.     {
  196.         $this->userUpdate $userUpdate;
  197.         return $this;
  198.     }
  199.     public function getIsBaseDocument(): ?bool
  200.     {
  201.         return $this->isBaseDocument;
  202.     }
  203.     public function setIsBaseDocument(?bool $isBaseDocument): self
  204.     {
  205.         $this->isBaseDocument $isBaseDocument;
  206.         return $this;
  207.     }
  208.     public function getCanAddIdentity(): ?bool
  209.     {
  210.         return $this->canAddIdentity;
  211.     }
  212.     public function setCanAddIdentity(?bool $canAddIdentity): self
  213.     {
  214.         $this->canAddIdentity $canAddIdentity;
  215.         return $this;
  216.     }
  217.     public function getCanSelectSameIdentity(): ?bool
  218.     {
  219.         return $this->canSelectSameIdentity;
  220.     }
  221.     public function setCanSelectSameIdentity(?bool $canSelectSameIdentity): self
  222.     {
  223.         $this->canSelectSameIdentity $canSelectSameIdentity;
  224.         return $this;
  225.     }
  226.     public function isForInternetUser(): ?bool
  227.     {
  228.         return $this->forInternetUser;
  229.     }
  230.     public function setForInternetUser(bool $forInternetUser): self
  231.     {
  232.         $this->forInternetUser $forInternetUser;
  233.         return $this;
  234.     }
  235.     public function isIsPublished(): ?bool
  236.     {
  237.         return $this->isPublished;
  238.     }
  239.     public function setIsPublished(?bool $isPublished): self
  240.     {
  241.         $this->isPublished $isPublished;
  242.         return $this;
  243.     }
  244.     public function getIconClass(): ?string
  245.     {
  246.         return $this->iconClass;
  247.     }
  248.     public function setIconClass(?string $iconClass): self
  249.     {
  250.         $this->iconClass $iconClass;
  251.         return $this;
  252.     }
  253. }