src/CoreBundle/Entity/CmsTemporaryProblemData.php line 13

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