<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\FaqsRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FaqsRepository::class)]
#[ApiResource]
class Faqs
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $question = null;
#[ORM\Column(nullable: true)]
private array $keyword = [];
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $response = null;
public function getId(): ?int
{
return $this->id;
}
public function getQuestion(): ?string
{
return $this->question;
}
public function setQuestion(?string $question): self
{
$this->question = $question;
return $this;
}
public function getKeyword(): array
{
return $this->keyword;
}
public function setKeyword(?array $keyword): self
{
$this->keyword = $keyword;
return $this;
}
public function getResponse(): ?string
{
return $this->response;
}
public function setResponse(?string $response): self
{
$this->response = $response;
return $this;
}
}