<?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\EditionModeleRubriqueLegendeRepository")
*/
class EditionModeleRubriqueLegende
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $titleTranslations;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $titleStyle;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ordering;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\EditionModeleRubrique", inversedBy="rubriqueLegendes")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="rubrique_id", referencedColumnName="id", onDelete="CASCADE")
* })
*/
private $rubrique;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\EditionLegende", inversedBy="rubriqueLegendes")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="legende_id", referencedColumnName="id")
* })
*/
private $legende;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $dynamic;
public function getId(): ?int
{
return $this->id;
}
public function getTitle() : ?string
{
return $this->title;
}
public function setTitle(?string $title) : self
{
$this->title = $title;
return $this;
}
public function getTitleStyle() : ?array
{
return $this->titleStyle;
}
public function setTitleStyle(?array $titleStyle) : self
{
$this->titleStyle = $titleStyle;
return $this;
}
public function getTitleTranslations() : ?array
{
return $this->titleTranslations;
}
public function setTitleTranslations(?array $titleTranslations) : self
{
$this->titleTranslations = $titleTranslations;
return $this;
}
public function getOrdering() : ?int
{
return $this->ordering;
}
public function setOrdering(?int $ordering) : self
{
$this->ordering = $ordering;
return $this;
}
public function getRubrique() : ?EditionModeleRubrique
{
return $this->rubrique;
}
public function setRubrique(?EditionModeleRubrique $rubrique) : self
{
$this->rubrique = $rubrique;
return $this;
}
public function getLegende() : ?EditionLegende
{
return $this->legende;
}
public function setLegende(?EditionLegende $legende) : self
{
$this->legende = $legende;
return $this;
}
public function getDynamic(): ?bool
{
return $this->dynamic;
}
public function setDynamic(?bool $dynamic): self
{
$this->dynamic = $dynamic;
return $this;
}
}