<?php
namespace App\Entity;
use App\Repository\FaqRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FaqRepository::class)]
class Faq
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $question = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $ans = null;
public function getId(): ?int
{
return $this->id;
}
public function getQuestion(): ?string
{
return $this->question;
}
public function setQuestion(?string $question): static
{
$this->question = $question;
return $this;
}
public function getAns(): ?string
{
return $this->ans;
}
public function setAns(?string $ans): static
{
$this->ans = $ans;
return $this;
}
}