<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use Vich\UploaderBundle\Mapping\Annotation as Vich;use Symfony\Component\HttpFoundation\File\File;/** * @ORM\Entity() * @Vich\Uploadable */class ScoringQuizResultDisplay{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=ScoringQuiz::class, inversedBy="resultDisplayConfigs") * @ORM\JoinColumn(nullable=false) */ private $scoringQuiz; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\Column(type="integer") */ private $minScore; /** * @ORM\Column(type="integer") */ private $maxScore; /** * @Vich\UploadableField(mapping="scorings_results", fileNameProperty="imagePath") */ private $imageFile; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $imagePath; public function getId(): ?int { return $this->id; } public function getQuiz(): ?ScoringQuiz { return $this->scoringQuiz; } public function setQuiz(?ScoringQuiz $scoringQuiz): self { $this->scoringQuiz = $scoringQuiz; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getMinScore(): ?int { return $this->minScore; } public function setMinScore(int $minScore): self { $this->minScore = $minScore; return $this; } public function getMaxScore(): ?int { return $this->maxScore; } public function setMaxScore(int $maxScore): self { $this->maxScore = $maxScore; return $this; } public function setImageFile(?File $imageFile = null): void { $this->imageFile = $imageFile; if (null !== $imageFile) { $this->updatedAt = new \DateTimeImmutable(); } } public function getImageFile(): ?File { return $this->imageFile; } public function setImagePath(?string $imagePath): void { $this->imagePath = $imagePath; } public function getImagePath(): ?string { return $this->imagePath; }}