src/Entity/FAQTranslation.php line 10
<?php
namespace App\Entity;
use App\Repository\FAQTranslationRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FAQTranslationRepository::class)]
class FAQTranslation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'fAQTranslations')]
private ?FAQ $faq = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $question = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $answer = null;
#[ORM\Column(length: 2, nullable: true)]
private ?string $locale = null;
public function getId(): ?int
{
return $this->id;
}
public function getFaq(): ?FAQ
{
return $this->faq;
}
public function setFaq(?FAQ $faq): self
{
$this->faq = $faq;
return $this;
}
public function getQuestion(): ?string
{
return $this->question;
}
public function setQuestion(?string $question): self
{
$this->question = $question;
return $this;
}
public function getAnswer(): ?string
{
return $this->answer;
}
public function setAnswer(?string $answer): self
{
$this->answer = $answer;
return $this;
}
public function getLocale(): ?string
{
return $this->locale;
}
public function setLocale(?string $locale): self
{
$this->locale = $locale;
return $this;
}
}