src/Entity/Core/CmsTemporaryProblemData.php line 11

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Core;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Table('cms_temporary_problem_data')]
  6. #[ORM\Entity]
  7. class CmsTemporaryProblemData
  8. {
  9. #[ORM\JoinColumn(name: 'problem', referencedColumnName: 'id')]
  10. #[ORM\Id]
  11. #[ORM\OneToOne(targetEntity: Mathproblem::class)]
  12. private Mathproblem $problem;
  13. #[ORM\Column(name: 'image_field', type: 'text', nullable: true)]
  14. private ?string $imageField;
  15. #[ORM\Column(name: 'sound_field', type: 'text', nullable: true)]
  16. private ?string $soundField;
  17. public function getProblem(): Mathproblem
  18. {
  19. return $this->problem;
  20. }
  21. public function setProblem(Mathproblem $problem): void
  22. {
  23. $this->problem = $problem;
  24. }
  25. public function getImageField(): string
  26. {
  27. return $this->imageField ?? '';
  28. }
  29. public function setImageField(?string $imageField): void
  30. {
  31. $this->imageField = $imageField;
  32. }
  33. public function getSoundField(): string
  34. {
  35. return $this->soundField ?? '';
  36. }
  37. public function setSoundField(?string $soundField): void
  38. {
  39. $this->soundField = $soundField;
  40. }
  41. }