src/Entity/Faqs.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource
  4. use App\Repository\FaqsRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassFaqsRepository::class)]
  8. #[ApiResource]
  9. class Faqs
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $question null;
  17.     
  18.     #[ORM\Column(nullabletrue)]
  19.     private array $keyword = [];
  20.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  21.     private ?string $response null;
  22.     
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getQuestion(): ?string
  28.     {
  29.         return $this->question;
  30.     }
  31.     public function setQuestion(?string $question): self
  32.     {
  33.         $this->question $question;
  34.         return $this;
  35.     }
  36.  
  37.     public function getKeyword(): array
  38.     {
  39.         return $this->keyword;
  40.     }
  41.     public function setKeyword(?array $keyword): self
  42.     {
  43.         $this->keyword $keyword;
  44.         return $this;
  45.     }
  46.     public function getResponse(): ?string
  47.     {
  48.         return $this->response;
  49.     }
  50.     public function setResponse(?string $response): self
  51.     {
  52.         $this->response $response;
  53.         return $this;
  54.     }
  55.  
  56.     
  57. }