src/Entity/PourcentageQuiz.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PourcentageQuizRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  6. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  7. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  8. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  9. #[ORM\Entity(repositoryClassPourcentageQuizRepository::class)]
  10. class PourcentageQuiz implements BlameableInterfaceTimestampableInterface
  11. {
  12.     use BlameableTrait;
  13.     use TimestampableTrait;
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue]
  16.     #[ORM\Column]
  17.     private ?int $id null;
  18.     #[ORM\Column(type'float'nullabletrue)]
  19.     private ?float $pourcentage null;
  20.     #[ORM\ManyToOne(inversedBy'pourcentageQuizzes')]
  21.     private ?Quiz $quiz null;
  22.     #[ORM\Column(type'string'length255)]
  23.     private ?string $token null;
  24.     #[ORM\ManyToOne(inversedBy'pourcentageQuizzes')]
  25.     #[ORM\JoinColumn(nullablefalse)]
  26.     private ?DemandeServiceCandidat $candidat null;
  27.     #[ORM\ManyToOne(inversedBy'pourcentageQuizzes')]
  28.     #[ORM\JoinColumn(nullablefalse)]
  29.     private ?DemandeAffectation $demandeAffectation null;
  30.     #[ORM\ManyToOne(inversedBy'pourcentageQuizzes')]
  31.     private ?QuizMention $mention null;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getPourcentage(): ?float
  37.     {
  38.         return $this->pourcentage;
  39.     }
  40.     public function setPourcentage(float $pourcentage): self
  41.     {
  42.         $this->pourcentage $pourcentage;
  43.         return $this;
  44.     }
  45.     public function getQuiz(): ?Quiz
  46.     {
  47.         return $this->quiz;
  48.     }
  49.     public function setQuiz(?Quiz $quiz): self
  50.     {
  51.         $this->quiz $quiz;
  52.         return $this;
  53.     }
  54.     public function getToken(): ?string
  55.     {
  56.         return $this->token;
  57.     }
  58.     public function setToken(string $token): self
  59.     {
  60.         $this->token $token;
  61.         return $this;
  62.     }
  63.     public function getCandidat(): ?DemandeServiceCandidat
  64.     {
  65.         return $this->candidat;
  66.     }
  67.     public function setCandidat(?DemandeServiceCandidat $candidat): self
  68.     {
  69.         $this->candidat $candidat;
  70.         return $this;
  71.     }
  72.     public function getDemandeAffectation(): ?DemandeAffectation
  73.     {
  74.         return $this->demandeAffectation;
  75.     }
  76.     public function setDemandeAffectation(?DemandeAffectation $demandeAffectation): self
  77.     {
  78.         $this->demandeAffectation $demandeAffectation;
  79.         return $this;
  80.     }
  81.     public function getMention(): ?QuizMention
  82.     {
  83.         return $this->mention;
  84.     }
  85.     public function setMention(?QuizMention $mention): self
  86.     {
  87.         $this->mention $mention;
  88.         return $this;
  89.     }
  90. }