<?php
namespace App\Entity;
use App\Repository\CritereEvaluationRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CritereEvaluationRepository::class)]
class CritereEvaluation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $label = null;
#[ORM\ManyToOne(inversedBy: 'critereEvaluations')]
#[ORM\JoinColumn(nullable: false)]
private ?FicheEval $fiche = null;
public function getId(): ?int
{
return $this->id;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): self
{
$this->label = $label;
return $this;
}
public function getFiche(): ?FicheEval
{
return $this->fiche;
}
public function setFiche(?FicheEval $fiche): self
{
$this->fiche = $fiche;
return $this;
}
public function __toString(): string
{
return $this->label;
}
}