src/Entity/Evaluation.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EvaluationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5.  #[ORM\InheritanceType("JOINED")]
  6.  #[ORM\DiscriminatorColumn(name"type"type"string")]
  7.  #[ORM\DiscriminatorMap(['evaluation' => Evaluation::class, 'evaluationcom' => EvaluationCOM::class , 'evaluationcon' => EvaluationCON::class])]
  8. #[ORM\Entity(repositoryClassEvaluationRepository::class)]
  9. class Evaluation
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column(type'integer')]
  14.     private $id;
  15.     #[ORM\Column(type'float')]
  16.     private $note;
  17.     #[ORM\Column(type'text')]
  18.     private $commentaire;
  19.     #[ORM\Column(type'datetime')]
  20.     private $date_evaluation;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getNote(): ?float
  26.     {
  27.         return $this->note;
  28.     }
  29.     public function setNote(float $note): self
  30.     {
  31.         $this->note $note;
  32.         return $this;
  33.     }
  34.     public function getCommentaire(): ?string
  35.     {
  36.         return $this->commentaire;
  37.     }
  38.     public function setCommentaire(string $commentaire): self
  39.     {
  40.         $this->commentaire $commentaire;
  41.         return $this;
  42.     }
  43.     public function getDateEvaluation(): ?\DateTimeInterface
  44.     {
  45.         return $this->date_evaluation;
  46.     }
  47.     public function setDateEvaluation(\DateTimeInterface $date_evaluation): self
  48.     {
  49.         $this->date_evaluation $date_evaluation;
  50.         return $this;
  51.     }
  52. }