<?php
namespace App\Entity;
use App\Repository\ContenusRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ContenusRepository::class)
*/
class Contenus
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $TitreFr;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $TitreEn;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $TexteFr;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $TexteEn;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Image;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Video;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Document;
/**
* @ORM\ManyToOne(targetEntity=Blocs::class, inversedBy="contenuses")
*/
private $Blocs;
/**
* @ORM\ManyToOne(targetEntity=TypesContenus::class, inversedBy="contenuses")
*/
private $TypesContenus;
/**
* @ORM\OneToMany(targetEntity=Accordeons::class, mappedBy="Contenus")
*/
private $accordeons;
/**
* @ORM\OneToMany(targetEntity=Carousels::class, mappedBy="Contenus")
*/
private $carousels;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Background;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Couleur1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Couleur2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Position;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Lien;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $modal;
public function __construct()
{
$this->accordeons = new ArrayCollection();
$this->carousels = new ArrayCollection();
}
public function __toString()
{
return (string) $this->TitreFr;
}
public function getId(): ?int
{
return $this->id;
}
public function getPosition(): ?string
{
return $this->Position;
}
public function setPosition(?string $Position): self
{
$this->Position = $Position;
return $this;
}
public function getTitreFr(): ?string
{
return $this->TitreFr;
}
public function setTitreFr(?string $TitreFr): self
{
$this->TitreFr = $TitreFr;
return $this;
}
public function getTitreEn(): ?string
{
return $this->TitreEn;
}
public function setTitreEn(?string $TitreEn): self
{
$this->TitreEn = $TitreEn;
return $this;
}
public function getTexteFr(): ?string
{
return $this->TexteFr;
}
public function setTexteFr(?string $TexteFr): self
{
$this->TexteFr = $TexteFr;
return $this;
}
public function getTexteEn(): ?string
{
return $this->TexteEn;
}
public function setTexteEn(?string $TexteEn): self
{
$this->TexteEn = $TexteEn;
return $this;
}
public function getImage(): ?string
{
return $this->Image;
}
public function setImage(?string $Image): self
{
$this->Image = $Image;
return $this;
}
public function getVideo(): ?string
{
return $this->Video;
}
public function setVideo(?string $Video): self
{
$this->Video = $Video;
return $this;
}
public function getDocument(): ?string
{
return $this->Document;
}
public function setDocument(?string $Document): self
{
$this->Document = $Document;
return $this;
}
public function getBlocs(): ?Blocs
{
return $this->Blocs;
}
public function setBlocs(?Blocs $Blocs): self
{
$this->Blocs = $Blocs;
return $this;
}
public function getTypesContenus(): ?TypesContenus
{
return $this->TypesContenus;
}
public function setTypesContenus(?TypesContenus $TypesContenus): self
{
$this->TypesContenus = $TypesContenus;
return $this;
}
/**
* @return Collection<int, Accordeons>
*/
public function getAccordeons(): Collection
{
return $this->accordeons;
}
public function addAccordeon(Accordeons $accordeon): self
{
if (!$this->accordeons->contains($accordeon)) {
$this->accordeons[] = $accordeon;
$accordeon->setContenus($this);
}
return $this;
}
public function removeAccordeon(Accordeons $accordeon): self
{
if ($this->accordeons->removeElement($accordeon)) {
// set the owning side to null (unless already changed)
if ($accordeon->getContenus() === $this) {
$accordeon->setContenus(null);
}
}
return $this;
}
/**
* @return Collection<int, Carousels>
*/
public function getCarousels(): Collection
{
return $this->carousels;
}
public function addCarousel(Carousels $carousel): self
{
if (!$this->carousels->contains($carousel)) {
$this->carousels[] = $carousel;
$carousel->setContenus($this);
}
return $this;
}
public function removeCarousel(Carousels $carousel): self
{
if ($this->carousels->removeElement($carousel)) {
// set the owning side to null (unless already changed)
if ($carousel->getContenus() === $this) {
$carousel->setContenus(null);
}
}
return $this;
}
public function getBackground(): ?string
{
return $this->Background;
}
public function setBackground(?string $Background): self
{
$this->Background = $Background;
return $this;
}
public function getCouleur1(): ?string
{
return $this->Couleur1;
}
public function setCouleur1(?string $Couleur1): self
{
$this->Couleur1 = $Couleur1;
return $this;
}
public function getCouleur2(): ?string
{
return $this->Couleur2;
}
public function setCouleur2(?string $Couleur2): self
{
$this->Couleur2 = $Couleur2;
return $this;
}
public function getLien(): ?string
{
return $this->Lien;
}
public function setLien(?string $Lien): self
{
$this->Lien = $Lien;
return $this;
}
public function getModal(): ?string
{
return $this->modal;
}
public function setModal(?string $modal): self
{
$this->modal = $modal;
return $this;
}
}