<?php
namespace App\Entity;
use App\Repository\PeriodeTypeRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PeriodeTypeRepository::class)]
class PeriodeType
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $libelle = null;
#[ORM\Column]
private ?bool $avoirCours = null;
#[ORM\Column(length: 8)]
private ?string $couleur = null;
public function getId(): ?int
{
return $this->id;
}
public function getLibelle(): ?string
{
return $this->libelle;
}
public function setLibelle(string $libelle): self
{
$this->libelle = $libelle;
return $this;
}
public function isAvoirCours(): ?bool
{
return $this->avoirCours;
}
public function setAvoirCours(bool $avoirCours): self
{
$this->avoirCours = $avoirCours;
return $this;
}
public function __toString(): string
{
return $this->getLibelle();
// TODO: Implement __toString() method.
}
public function getCouleur(): ?string
{
return $this->couleur;
}
public function setCouleur(string $couleur): self
{
$this->couleur = $couleur;
return $this;
}
}