src/Entity/WebSubSectionFilter.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity (repositoryClass="App\Repository\WebSubSectionFilterRepository")
  6.  */
  7. class WebSubSectionFilter
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity="App\Entity\WebEngineSubSection", inversedBy="filters")
  17.      * @ORM\JoinColumns({
  18.      *   @ORM\JoinColumn(name="sub_section_id", referencedColumnName="id", onDelete="CASCADE")
  19.      * })
  20.      */
  21.     private $subSection;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity="App\Entity\WebFilter", inversedBy="subSections")
  24.      * @ORM\JoinColumns({
  25.      *   @ORM\JoinColumn(name="filter_id", referencedColumnName="id", onDelete="CASCADE")
  26.      * })
  27.      */
  28.     private $filter;
  29.     /**
  30.      * @ORM\Column(type="integer", nullable=true, options={"default":0})
  31.      */
  32.     private $ordering;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="webSubSectionFilters")
  35.      * @ORM\JoinColumns({
  36.      *   @ORM\JoinColumn(name="owner_id", referencedColumnName="id")
  37.      * })
  38.      */
  39.     private $owner;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="webSubSectionFilters")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="entity_id", referencedColumnName="id")
  44.      * })
  45.      */
  46.     private $entity;
  47.     /**
  48.      * @ORM\Column(type="datetime", nullable=true)
  49.      */
  50.     private $createdAt;
  51.     /**
  52.      * @ORM\Column(type="datetime", nullable=true)
  53.      */
  54.     private $updatedAt;
  55.     /**
  56.      * @ORM\Column(type="integer", nullable=true, options={"default":0, "comment":"code de statut : 0=OK"})
  57.      */
  58.     private $state;
  59.     public function getId() : ?int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function getOrdering() : ?int
  64.     {
  65.         return $this->ordering;
  66.     }
  67.     public function setOrdering(?int $ordering) : self
  68.     {
  69.         $this->ordering $ordering;
  70.         return $this;
  71.     }
  72.     public function getCreatedAt() : ?\DateTimeInterface
  73.     {
  74.         return $this->createdAt;
  75.     }
  76.     public function setCreatedAt(?\DateTimeInterface $createdAt) : self
  77.     {
  78.         $this->createdAt $createdAt;
  79.         return $this;
  80.     }
  81.     public function getUpdatedAt() : ?\DateTimeInterface
  82.     {
  83.         return $this->updatedAt;
  84.     }
  85.     public function setUpdatedAt(?\DateTimeInterface $updatedAt) : self
  86.     {
  87.         $this->updatedAt $updatedAt;
  88.         return $this;
  89.     }
  90.     public function getState() : ?int
  91.     {
  92.         return $this->state;
  93.     }
  94.     public function setState(?int $state) : self
  95.     {
  96.         $this->state $state;
  97.         return $this;
  98.     }
  99.     public function getSubSection() : ?WebEngineSubSection
  100.     {
  101.         return $this->subSection;
  102.     }
  103.     public function setSubSection(?WebEngineSubSection $subSection) : self
  104.     {
  105.         $this->subSection $subSection;
  106.         return $this;
  107.     }
  108.     public function getFilter() : ?WebFilter
  109.     {
  110.         return $this->filter;
  111.     }
  112.     public function setFilter(?WebFilter $filter) : self
  113.     {
  114.         $this->filter $filter;
  115.         return $this;
  116.     }
  117.     public function getOwner() : ?User
  118.     {
  119.         return $this->owner;
  120.     }
  121.     public function setOwner(?User $owner) : self
  122.     {
  123.         $this->owner $owner;
  124.         return $this;
  125.     }
  126.     public function getEntity() : ?DnsitEntity
  127.     {
  128.         return $this->entity;
  129.     }
  130.     public function setEntity(?DnsitEntity $entity) : self
  131.     {
  132.         $this->entity $entity;
  133.         return $this;
  134.     }
  135. }