src/Entity/CritereEvaluation.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CritereEvaluationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCritereEvaluationRepository::class)]
  6. class CritereEvaluation
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $label null;
  14.     #[ORM\ManyToOne(inversedBy'critereEvaluations')]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?FicheEval $fiche null;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getLabel(): ?string
  22.     {
  23.         return $this->label;
  24.     }
  25.     public function setLabel(string $label): self
  26.     {
  27.         $this->label $label;
  28.         return $this;
  29.     }
  30.     public function getFiche(): ?FicheEval
  31.     {
  32.         return $this->fiche;
  33.     }
  34.     public function setFiche(?FicheEval $fiche): self
  35.     {
  36.         $this->fiche $fiche;
  37.         return $this;
  38.     }
  39.     public function __toString(): string
  40.     {
  41.         return $this->label;
  42.     }
  43. }