src/Entity/PeriodeType.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PeriodeTypeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPeriodeTypeRepository::class)]
  6. class PeriodeType
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $libelle null;
  14.     #[ORM\Column]
  15.     private ?bool $avoirCours null;
  16.     #[ORM\Column(length8)]
  17.     private ?string $couleur null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getLibelle(): ?string
  23.     {
  24.         return $this->libelle;
  25.     }
  26.     public function setLibelle(string $libelle): self
  27.     {
  28.         $this->libelle $libelle;
  29.         return $this;
  30.     }
  31.     public function isAvoirCours(): ?bool
  32.     {
  33.         return $this->avoirCours;
  34.     }
  35.     public function setAvoirCours(bool $avoirCours): self
  36.     {
  37.         $this->avoirCours $avoirCours;
  38.         return $this;
  39.     }
  40.     public function __toString(): string
  41.     {
  42.         return $this->getLibelle();
  43.         // TODO: Implement __toString() method.
  44.     }
  45.     public function getCouleur(): ?string
  46.     {
  47.         return $this->couleur;
  48.     }
  49.     public function setCouleur(string $couleur): self
  50.     {
  51.         $this->couleur $couleur;
  52.         return $this;
  53.     }
  54. }