src/Entity/EditionModeleRubriqueLegende.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity (repositoryClass="App\Repository\EditionModeleRubriqueLegendeRepository")
  8.  */
  9. class EditionModeleRubriqueLegende
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private $title;
  21.     /**
  22.      * @ORM\Column(type="json", nullable=true)
  23.      */
  24.     private $titleTranslations;
  25.     /**
  26.      * @ORM\Column(type="json", nullable=true)
  27.      */
  28.     private $titleStyle;
  29.     /**
  30.      * @ORM\Column(type="integer", nullable=true)
  31.      */
  32.     private $ordering;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity="App\Entity\EditionModeleRubrique", inversedBy="rubriqueLegendes")
  35.      * @ORM\JoinColumns({
  36.      *   @ORM\JoinColumn(name="rubrique_id", referencedColumnName="id", onDelete="CASCADE")
  37.      * })
  38.      */
  39.     private $rubrique;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity="App\Entity\EditionLegende", inversedBy="rubriqueLegendes")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="legende_id", referencedColumnName="id")
  44.      * })
  45.      */
  46.     private $legende;
  47.     /**
  48.      * @ORM\Column(type="boolean", nullable=true)
  49.      */
  50.     private $dynamic;
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getTitle() : ?string
  56.     {
  57.         return $this->title;
  58.     }
  59.     public function setTitle(?string $title) : self
  60.     {
  61.         $this->title $title;
  62.         return $this;
  63.     }
  64.     public function getTitleStyle() : ?array
  65.     {
  66.         return $this->titleStyle;
  67.     }
  68.     public function setTitleStyle(?array $titleStyle) : self
  69.     {
  70.         $this->titleStyle $titleStyle;
  71.         return $this;
  72.     }
  73.     public function getTitleTranslations() : ?array
  74.     {
  75.         return $this->titleTranslations;
  76.     }
  77.     public function setTitleTranslations(?array $titleTranslations) : self
  78.     {
  79.         $this->titleTranslations $titleTranslations;
  80.         return $this;
  81.     }
  82.     public function getOrdering() : ?int
  83.     {
  84.         return $this->ordering;
  85.     }
  86.     public function setOrdering(?int $ordering) : self
  87.     {
  88.         $this->ordering $ordering;
  89.         return $this;
  90.     }
  91.     public function getRubrique() : ?EditionModeleRubrique
  92.     {
  93.         return $this->rubrique;
  94.     }
  95.     public function setRubrique(?EditionModeleRubrique $rubrique) : self
  96.     {
  97.         $this->rubrique $rubrique;
  98.         return $this;
  99.     }
  100.     public function getLegende() : ?EditionLegende
  101.     {
  102.         return $this->legende;
  103.     }
  104.     public function setLegende(?EditionLegende $legende) : self
  105.     {
  106.         $this->legende $legende;
  107.         return $this;
  108.     }
  109.     public function getDynamic(): ?bool
  110.     {
  111.         return $this->dynamic;
  112.     }
  113.     public function setDynamic(?bool $dynamic): self
  114.     {
  115.         $this->dynamic $dynamic;
  116.         return $this;
  117.     }
  118. }