<?php
declare(strict_types=1);
namespace App\Entity\Core;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table('cms_temporary_problem_data')]
#[ORM\Entity]
class CmsTemporaryProblemData
{
#[ORM\JoinColumn(name: 'problem', referencedColumnName: 'id')]
#[ORM\Id]
#[ORM\OneToOne(targetEntity: Mathproblem::class)]
private Mathproblem $problem;
#[ORM\Column(name: 'image_field', type: 'text', nullable: true)]
private ?string $imageField;
#[ORM\Column(name: 'sound_field', type: 'text', nullable: true)]
private ?string $soundField;
public function getProblem(): Mathproblem
{
return $this->problem;
}
public function setProblem(Mathproblem $problem): void
{
$this->problem = $problem;
}
public function getImageField(): string
{
return $this->imageField ?? '';
}
public function setImageField(?string $imageField): void
{
$this->imageField = $imageField;
}
public function getSoundField(): string
{
return $this->soundField ?? '';
}
public function setSoundField(?string $soundField): void
{
$this->soundField = $soundField;
}
}