src/Entity/EditionLegendeItem.php line 12

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\EditionLegendeItemRepository")
  8.  */
  9. class EditionLegendeItem
  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 $textLegend;
  21.     /**
  22.      * @ORM\Column(type="json", nullable=true)
  23.      */
  24.     private $textLegendTranslations;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\Media", inversedBy="editionLegendeItems")
  27.      * @ORM\JoinColumns({
  28.      *   @ORM\JoinColumn(name="media_id", referencedColumnName="id", onDelete="CASCADE")
  29.      * })
  30.      */
  31.     private $media;
  32.     /**
  33.      * @ORM\Column(type="json", nullable=true, options={"comment":"IcĂ´ne CSS type fontAwesome"})
  34.      */
  35.     private $iconClass;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="App\Entity\EditionLegende", inversedBy="legendItems")
  38.      * @ORM\JoinColumns({
  39.      *   @ORM\JoinColumn(name="legend_id", referencedColumnName="id", onDelete="CASCADE")
  40.      * })
  41.      */
  42.     private $legend;
  43.     /**
  44.      * @ORM\Column(type="datetime", nullable=true)
  45.      */
  46.     private $createdAt;
  47.     /**
  48.      * @ORM\Column(type="datetime", nullable=true)
  49.      */
  50.     private $updatedAt;
  51.     /**
  52.      * @ORM\Column(type="integer", nullable=true, options={"default":0, "comment":"code de statut : 0=OK"})
  53.      */
  54.     private $state;
  55.     /**
  56.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="editionLegendeItems")
  57.      * @ORM\JoinColumns({
  58.      *   @ORM\JoinColumn(name="owner_id", referencedColumnName="id")
  59.      * })
  60.      */
  61.     private $owner;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="editionLegendeItems")
  64.      * @ORM\JoinColumns({
  65.      *   @ORM\JoinColumn(name="entity_id", referencedColumnName="id")
  66.      * })
  67.      */
  68.     private $entity;
  69.     /**
  70.      * @ORM\Column(type="integer", nullable=true)
  71.      */
  72.     private $rank;
  73.     public function getId(): ?int
  74.     {
  75.         return $this->id;
  76.     }
  77.     public function getCreatedAt(): ?\DateTimeInterface
  78.     {
  79.         return $this->createdAt;
  80.     }
  81.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  82.     {
  83.         $this->createdAt $createdAt;
  84.         return $this;
  85.     }
  86.     public function getUpdatedAt(): ?\DateTimeInterface
  87.     {
  88.         return $this->updatedAt;
  89.     }
  90.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  91.     {
  92.         $this->updatedAt $updatedAt;
  93.         return $this;
  94.     }
  95.     public function getState(): ?int
  96.     {
  97.         return $this->state;
  98.     }
  99.     public function setState(?int $state): self
  100.     {
  101.         $this->state $state;
  102.         return $this;
  103.     }
  104.     public function getMedia(): ?Media
  105.     {
  106.         return $this->media;
  107.     }
  108.     public function setMedia(?Media $media): self
  109.     {
  110.         $this->media $media;
  111.         return $this;
  112.     }
  113.     public function getIconClass() : ?array
  114.     {
  115.         return $this->iconClass;
  116.     }
  117.     
  118.     public function setIconClass(?array $iconClass) : self
  119.     {
  120.         $this->iconClass $iconClass;
  121.         return $this;
  122.     }
  123.     public function getOwner(): ?User
  124.     {
  125.         return $this->owner;
  126.     }
  127.     public function setOwner(?User $owner): self
  128.     {
  129.         $this->owner $owner;
  130.         return $this;
  131.     }
  132.     public function getEntity(): ?DnsitEntity
  133.     {
  134.         return $this->entity;
  135.     }
  136.     public function setEntity(?DnsitEntity $entity): self
  137.     {
  138.         $this->entity $entity;
  139.         return $this;
  140.     }
  141.     public function getTextLegend(): ?string
  142.     {
  143.         return $this->textLegend;
  144.     }
  145.     public function setTextLegend(?string $textLegend): self
  146.     {
  147.         $this->textLegend $textLegend;
  148.         return $this;
  149.     }
  150.     public function getTextLegendTranslations(): ?array
  151.     {
  152.         return $this->textLegendTranslations;
  153.     }
  154.     public function setTextLegendTranslations(?array $textLegendTranslations): self
  155.     {
  156.         $this->textLegendTranslations $textLegendTranslations;
  157.         return $this;
  158.     }
  159.     public function getLegend(): ?EditionLegende
  160.     {
  161.         return $this->legend;
  162.     }
  163.     public function setLegend(?EditionLegende $legend): self
  164.     {
  165.         $this->legend $legend;
  166.         return $this;
  167.     }
  168.     public function getRank(): ?int
  169.     {
  170.         return $this->rank;
  171.     }
  172.     public function setRank(?int $rank): self
  173.     {
  174.         $this->rank $rank;
  175.         return $this;
  176.     }
  177. }