<?php
namespace App\Entity;
use App\Repository\ActualitesRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ActualitesRepository::class)
*/
class Actualites
{
/**
* @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="date", nullable=true)
*/
private $Date;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $NbVues;
/**
* @ORM\OneToMany(targetEntity=Sections::class, mappedBy="Actualites")
*/
private $sections;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ResumeFr;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ResumeEn;
/**
* @ORM\ManyToOne(targetEntity=CategoriesActualites::class, inversedBy="actualites")
*/
private $CategoriesActualites;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $IntroFr;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $IntroEn;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $Afficher;
public function __construct()
{
$this->sections = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
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 getDate(): ?\DateTimeInterface
{
return $this->Date;
}
public function setDate(?\DateTimeInterface $Date): self
{
$this->Date = $Date;
return $this;
}
public function getNbVues(): ?int
{
return $this->NbVues;
}
public function setNbVues(?int $NbVues): self
{
$this->NbVues = $NbVues;
return $this;
}
/**
* @return Collection<int, Sections>
*/
public function getSections(): Collection
{
return $this->sections;
}
public function addSection(Sections $section): self
{
if (!$this->sections->contains($section)) {
$this->sections[] = $section;
$section->setActualites($this);
}
return $this;
}
public function removeSection(Sections $section): self
{
if ($this->sections->removeElement($section)) {
// set the owning side to null (unless already changed)
if ($section->getActualites() === $this) {
$section->setActualites(null);
}
}
return $this;
}
public function getResumeFr(): ?string
{
return $this->ResumeFr;
}
public function setResumeFr(?string $ResumeFr): self
{
$this->ResumeFr = $ResumeFr;
return $this;
}
public function getResumeEn(): ?string
{
return $this->ResumeEn;
}
public function setResumeEn(?string $ResumeEn): self
{
$this->ResumeEn = $ResumeEn;
return $this;
}
public function getCategoriesActualites(): ?CategoriesActualites
{
return $this->CategoriesActualites;
}
public function setCategoriesActualites(?CategoriesActualites $CategoriesActualites): self
{
$this->CategoriesActualites = $CategoriesActualites;
return $this;
}
public function getIntroFr(): ?string
{
return $this->IntroFr;
}
public function setIntroFr(?string $IntroFr): self
{
$this->IntroFr = $IntroFr;
return $this;
}
public function getIntroEn(): ?string
{
return $this->IntroEn;
}
public function setIntroEn(?string $IntroEn): self
{
$this->IntroEn = $IntroEn;
return $this;
}
public function getAfficher(): ?int
{
return $this->Afficher;
}
public function setAfficher(?int $Afficher): self
{
$this->Afficher = $Afficher;
return $this;
}
}