src/Entity/QuizLost.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\QuizLostRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassQuizLostRepository::class)]
  7. class QuizLost
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'quizLosts')]
  14.     private ?Cours $cours null;
  15.     #[ORM\ManyToOne(inversedBy'quizLosts')]
  16.     private ?Chapitre $chapitre null;
  17.     #[ORM\ManyToOne(inversedBy'quizLosts')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?Eleve $eleve null;
  20.     #[ORM\Column(typeTypes::SMALLINT)]
  21.     private ?int $attempt null;
  22.     #[ORM\Column]
  23.     private ?\DateTimeImmutable $lastAt null;
  24.     #[ORM\Column]
  25.     private ?\DateTimeImmutable $nextAt null;
  26.     #[ORM\Column]
  27.     private ?bool $isOk null;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getCours(): ?Cours
  33.     {
  34.         return $this->cours;
  35.     }
  36.     public function setCours(?Cours $cours): self
  37.     {
  38.         $this->cours $cours;
  39.         return $this;
  40.     }
  41.     public function getChapitre(): ?Chapitre
  42.     {
  43.         return $this->chapitre;
  44.     }
  45.     public function setChapitre(?Chapitre $chapitre): self
  46.     {
  47.         $this->chapitre $chapitre;
  48.         return $this;
  49.     }
  50.     public function getEleve(): ?Eleve
  51.     {
  52.         return $this->eleve;
  53.     }
  54.     public function setEleve(?Eleve $eleve): self
  55.     {
  56.         $this->eleve $eleve;
  57.         return $this;
  58.     }
  59.     public function getAttempt(): ?int
  60.     {
  61.         return $this->attempt;
  62.     }
  63.     public function setAttempt(int $attempt): self
  64.     {
  65.         $this->attempt $attempt;
  66.         return $this;
  67.     }
  68.     public function getLastAt(): ?\DateTimeImmutable
  69.     {
  70.         return $this->lastAt;
  71.     }
  72.     public function setLastAt(\DateTimeImmutable $lastAt): self
  73.     {
  74.         $this->lastAt $lastAt;
  75.         return $this;
  76.     }
  77.     public function getNextAt(): ?\DateTimeImmutable
  78.     {
  79.         return $this->nextAt;
  80.     }
  81.     public function setNextAt(\DateTimeImmutable $nextAt): self
  82.     {
  83.         $this->nextAt $nextAt;
  84.         return $this;
  85.     }
  86.     public function isIsOk(): ?bool
  87.     {
  88.         return $this->isOk;
  89.     }
  90.     public function setIsOk(bool $isOk): self
  91.     {
  92.         $this->isOk $isOk;
  93.         return $this;
  94.     }
  95. }