<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\EditionLegendeItemRepository")
*/
class EditionLegendeItem
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $textLegend;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $textLegendTranslations;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Media", inversedBy="editionLegendeItems")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="media_id", referencedColumnName="id", onDelete="CASCADE")
* })
*/
private $media;
/**
* @ORM\Column(type="json", nullable=true, options={"comment":"IcĂ´ne CSS type fontAwesome"})
*/
private $iconClass;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\EditionLegende", inversedBy="legendItems")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="legend_id", referencedColumnName="id", onDelete="CASCADE")
* })
*/
private $legend;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\Column(type="integer", nullable=true, options={"default":0, "comment":"code de statut : 0=OK"})
*/
private $state;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="editionLegendeItems")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="owner_id", referencedColumnName="id")
* })
*/
private $owner;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="editionLegendeItems")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="entity_id", referencedColumnName="id")
* })
*/
private $entity;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $rank;
public function getId(): ?int
{
return $this->id;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getState(): ?int
{
return $this->state;
}
public function setState(?int $state): self
{
$this->state = $state;
return $this;
}
public function getMedia(): ?Media
{
return $this->media;
}
public function setMedia(?Media $media): self
{
$this->media = $media;
return $this;
}
public function getIconClass() : ?array
{
return $this->iconClass;
}
public function setIconClass(?array $iconClass) : self
{
$this->iconClass = $iconClass;
return $this;
}
public function getOwner(): ?User
{
return $this->owner;
}
public function setOwner(?User $owner): self
{
$this->owner = $owner;
return $this;
}
public function getEntity(): ?DnsitEntity
{
return $this->entity;
}
public function setEntity(?DnsitEntity $entity): self
{
$this->entity = $entity;
return $this;
}
public function getTextLegend(): ?string
{
return $this->textLegend;
}
public function setTextLegend(?string $textLegend): self
{
$this->textLegend = $textLegend;
return $this;
}
public function getTextLegendTranslations(): ?array
{
return $this->textLegendTranslations;
}
public function setTextLegendTranslations(?array $textLegendTranslations): self
{
$this->textLegendTranslations = $textLegendTranslations;
return $this;
}
public function getLegend(): ?EditionLegende
{
return $this->legend;
}
public function setLegend(?EditionLegende $legend): self
{
$this->legend = $legend;
return $this;
}
public function getRank(): ?int
{
return $this->rank;
}
public function setRank(?int $rank): self
{
$this->rank = $rank;
return $this;
}
}