src/Entity/DocumentCategorySites.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocumentCategorySitesRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=DocumentCategorySitesRepository::class)
  8.  * @Auditable()
  9.  */
  10. class DocumentCategorySites
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Sites::class)
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $site;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=DocumentCategory::class)
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $documentCategory;
  28.     /**
  29.      * @ORM\Column(type="text", nullable=false)
  30.      */
  31.     private $htmlModel;
  32.     /**
  33.      * @ORM\Column(type="integer", nullable=true)
  34.      */
  35.     private $status;
  36.     public function __construct()
  37.     {
  38.     }
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getSite(): ?Sites
  44.     {
  45.         return $this->site;
  46.     }
  47.     public function setSite(?Sites $site): self
  48.     {
  49.         $this->site $site;
  50.         return $this;
  51.     }
  52.     public function getDocumentCategory(): ?DocumentCategory
  53.     {
  54.         return $this->documentCategory;
  55.     }
  56.     public function setDocumentCategory(?DocumentCategory $documentCategory): self
  57.     {
  58.         $this->documentCategory $documentCategory;
  59.         return $this;
  60.     }
  61.     public function getHtmlModel(): ?string
  62.     {
  63.         return $this->htmlModel;
  64.     }
  65.     public function setHtmlModel(?string $htmlModel): self
  66.     {
  67.         $this->htmlModel $htmlModel;
  68.         return $this;
  69.     }
  70.     public function getStatus(): ?int
  71.     {
  72.         return $this->status;
  73.     }
  74.     public function setStatus(?int $status): self
  75.     {
  76.         $this->status $status;
  77.         return $this;
  78.     }
  79. }