src/Entity/EvaluationResultat.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EvaluationResultatRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassEvaluationResultatRepository::class)]
  7. class EvaluationResultat
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'results')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?Evaluation $evaluation null;
  16.     #[ORM\ManyToOne(inversedBy'evaluationResultats')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?Eleve $eleve null;
  19.     #[ORM\Column(typeTypes::ARRAY)]
  20.     private array $contents = [];
  21.     #[ORM\Column]
  22.     private ?float $noteObtenue null;
  23.     #[ORM\Column]
  24.     private ?\DateTimeImmutable $dateEvaluationAt null;
  25.     public function __construct()
  26.     {
  27.         $this->dateEvaluationAt = new \DateTimeImmutable();
  28.     }
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getEvaluation(): ?Evaluation
  34.     {
  35.         return $this->evaluation;
  36.     }
  37.     public function setEvaluation(?Evaluation $evaluation): self
  38.     {
  39.         $this->evaluation $evaluation;
  40.         return $this;
  41.     }
  42.     public function getEleve(): ?Eleve
  43.     {
  44.         return $this->eleve;
  45.     }
  46.     public function setEleve(?Eleve $eleve): self
  47.     {
  48.         $this->eleve $eleve;
  49.         return $this;
  50.     }
  51.     public function getContents(): array
  52.     {
  53.         return $this->contents;
  54.     }
  55.     public function setContents(array $contents): self
  56.     {
  57.         $this->contents $contents;
  58.         return $this;
  59.     }
  60.     public function getNoteObtenue(): ?float
  61.     {
  62.         return $this->noteObtenue;
  63.     }
  64.     public function setNoteObtenue(float $noteObtenue): self
  65.     {
  66.         $this->noteObtenue $noteObtenue;
  67.         return $this;
  68.     }
  69.     public function getDateEvaluationAt(): ?\DateTimeImmutable
  70.     {
  71.         return $this->dateEvaluationAt;
  72.     }
  73.     public function setDateEvaluationAt(\DateTimeImmutable $dateEvaluationAt): self
  74.     {
  75.         $this->dateEvaluationAt $dateEvaluationAt;
  76.         return $this;
  77.     }
  78. }