src/Entity/ScoringQuizResultDisplay.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  5. use Symfony\Component\HttpFoundation\File\File;
  6. /**
  7.  * @ORM\Entity()
  8.  * @Vich\Uploadable
  9.  */
  10. class ScoringQuizResultDisplay
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=ScoringQuiz::class, inversedBy="resultDisplayConfigs")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $scoringQuiz;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $title;
  27.     /**
  28.      * @ORM\Column(type="integer")
  29.      */
  30.     private $minScore;
  31.     /**
  32.      * @ORM\Column(type="integer")
  33.      */
  34.     private $maxScore;
  35.     /**
  36.      * @Vich\UploadableField(mapping="scorings_results", fileNameProperty="imagePath")
  37.      */
  38.     private $imageFile;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $imagePath;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getQuiz(): ?ScoringQuiz
  48.     {
  49.         return $this->scoringQuiz;
  50.     }
  51.     public function setQuiz(?ScoringQuiz $scoringQuiz): self
  52.     {
  53.         $this->scoringQuiz $scoringQuiz;
  54.         return $this;
  55.     }
  56.     public function getTitle(): ?string
  57.     {
  58.         return $this->title;
  59.     }
  60.     public function setTitle(string $title): self
  61.     {
  62.         $this->title $title;
  63.         return $this;
  64.     }
  65.     public function getMinScore(): ?int
  66.     {
  67.         return $this->minScore;
  68.     }
  69.     public function setMinScore(int $minScore): self
  70.     {
  71.         $this->minScore $minScore;
  72.         return $this;
  73.     }
  74.     public function getMaxScore(): ?int
  75.     {
  76.         return $this->maxScore;
  77.     }
  78.     public function setMaxScore(int $maxScore): self
  79.     {
  80.         $this->maxScore $maxScore;
  81.         return $this;
  82.     }
  83.     public function setImageFile(?File $imageFile null): void
  84.     {
  85.         $this->imageFile $imageFile;
  86.         if (null !== $imageFile) {
  87.             $this->updatedAt = new \DateTimeImmutable();
  88.         }
  89.     }
  90.     public function getImageFile(): ?File
  91.     {
  92.         return $this->imageFile;
  93.     }
  94.     public function setImagePath(?string $imagePath): void
  95.     {
  96.         $this->imagePath $imagePath;
  97.     }
  98.     public function getImagePath(): ?string
  99.     {
  100.         return $this->imagePath;
  101.     }
  102. }