<?phpnamespace App\Entity\Core\Dictate;use DateTime;use Doctrine\ORM\Mapping as ORM;#[ORM\Table('dictate_response')]#[ORM\Entity(repositoryClass: DictateResponseRepository::class)]class DictateResponse{ /** * @var int */ #[ORM\Column(name: 'id', type: 'integer')] #[ORM\Id] #[ORM\GeneratedValue(strategy: 'AUTO')] private $id; /** * @var DictateUnit */ #[ORM\JoinColumn(name: 'dictate_unit', referencedColumnName: 'id', onDelete: 'CASCADE')] #[ORM\ManyToOne(targetEntity: DictateUnit::class, inversedBy: 'dictateResponses')] private $dictateUnit; /** * @var Dictate */ #[ORM\JoinColumn(name: 'dictate', referencedColumnName: 'id')] #[ORM\ManyToOne(targetEntity: Dictate::class)] private $dictate; /** * @var DateTime */ #[ORM\Column(name: 'createdAt', type: 'datetime', nullable: true)] private $createdAt; /** * @var string */ #[ORM\Column(name: 'answer_text', type: 'text', nullable: true)] private $answerText; public function getId(): int { return $this->id; } public function setId(int $id): void { $this->id = $id; } public function getDictateUnit(): DictateUnit { return $this->dictateUnit; } public function setDictateUnit(DictateUnit $dictateUnit): void { $this->dictateUnit = $dictateUnit; } public function getDictate(): Dictate { return $this->dictate; } public function setDictate(Dictate $dictate): void { $this->dictate = $dictate; } /** * @return DateTime */ public function getCreatedAt(): DateTime { return $this->createdAt; } /** * @param DateTime $createdAt */ public function setCreatedAt(DateTime $createdAt): void { $this->createdAt = $createdAt; } public function getAnswerText(): string { return $this->answerText; } public function setAnswerText(string $answerText): void { $this->answerText = $answerText; }}