<?php
namespace App\Entity;
use App\Repository\SectionsRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SectionsRepository::class)
*/
class Sections
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Image;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Color;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $Ordre;
/**
* @ORM\ManyToOne(targetEntity=Pages::class, inversedBy="sections")
*/
private $Pages;
/**
* @ORM\OneToMany(targetEntity=Lignes::class, mappedBy="Sections")
*/
private $lignes;
/**
* @ORM\ManyToOne(targetEntity=Actualites::class, inversedBy="sections")
*/
private $Actualites;
/**
* @ORM\ManyToOne(targetEntity=Jobs::class, inversedBy="sections")
*/
private $Jobs;
/**
* @ORM\ManyToOne(targetEntity=Formations::class, inversedBy="sections")
*/
private $Formations;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Rond;
public function __construct()
{
$this->lignes = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getImage(): ?string
{
return $this->Image;
}
public function setImage(?string $Image): self
{
$this->Image = $Image;
return $this;
}
public function getColor(): ?string
{
return $this->Color;
}
public function setColor(?string $Color): self
{
$this->Color = $Color;
return $this;
}
public function getOrdre(): ?int
{
return $this->Ordre;
}
public function setOrdre(?int $Ordre): self
{
$this->Ordre = $Ordre;
return $this;
}
public function getPages(): ?Pages
{
return $this->Pages;
}
public function setPages(?Pages $Pages): self
{
$this->Pages = $Pages;
return $this;
}
/**
* @return Collection<int, Lignes>
*/
public function getLignes(): Collection
{
return $this->lignes;
}
public function addLigne(Lignes $ligne): self
{
if (!$this->lignes->contains($ligne)) {
$this->lignes[] = $ligne;
$ligne->setSections($this);
}
return $this;
}
public function removeLigne(Lignes $ligne): self
{
if ($this->lignes->removeElement($ligne)) {
// set the owning side to null (unless already changed)
if ($ligne->getSections() === $this) {
$ligne->setSections(null);
}
}
return $this;
}
public function getActualites(): ?Actualites
{
return $this->Actualites;
}
public function setActualites(?Actualites $Actualites): self
{
$this->Actualites = $Actualites;
return $this;
}
public function getJobs(): ?Jobs
{
return $this->Jobs;
}
public function setJobs(?Jobs $Jobs): self
{
$this->Jobs = $Jobs;
return $this;
}
public function getFormations(): ?Formations
{
return $this->Formations;
}
public function setFormations(?Formations $Formations): self
{
$this->Formations = $Formations;
return $this;
}
public function getRond(): ?string
{
return $this->Rond;
}
public function setRond(?string $Rond): self
{
$this->Rond = $Rond;
return $this;
}
}