<?php
namespace App\Entity;
use App\Repository\EvaluationRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\InheritanceType("JOINED")]
#[ORM\DiscriminatorColumn(name: "type", type: "string")]
#[ORM\DiscriminatorMap(['evaluation' => Evaluation::class, 'evaluationcom' => EvaluationCOM::class , 'evaluationcon' => EvaluationCON::class])]
#[ORM\Entity(repositoryClass: EvaluationRepository::class)]
class Evaluation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'float')]
private $note;
#[ORM\Column(type: 'text')]
private $commentaire;
#[ORM\Column(type: 'datetime')]
private $date_evaluation;
public function getId(): ?int
{
return $this->id;
}
public function getNote(): ?float
{
return $this->note;
}
public function setNote(float $note): self
{
$this->note = $note;
return $this;
}
public function getCommentaire(): ?string
{
return $this->commentaire;
}
public function setCommentaire(string $commentaire): self
{
$this->commentaire = $commentaire;
return $this;
}
public function getDateEvaluation(): ?\DateTimeInterface
{
return $this->date_evaluation;
}
public function setDateEvaluation(\DateTimeInterface $date_evaluation): self
{
$this->date_evaluation = $date_evaluation;
return $this;
}
}