src/Entity/QnA.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Symfony\Component\Serializer\Annotation\Groups;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass'App\Repository\QnARepository')]
  6. class QnA
  7. {
  8.     #[Groups(['LogService'])]
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[ORM\ManyToOne(targetEntityCompany::class, inversedBy'QnAs')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private $company;
  16.     #[ORM\ManyToOne(targetEntityOffice::class, inversedBy'QnAs')]
  17.     private $office;
  18.     #[Groups(['LogService'])]
  19.     #[ORM\Column(type'datetime')]
  20.     private $createdAt;
  21.     #[Groups(['LogService'])]
  22.     #[ORM\ManyToOne(targetEntityUser::class)]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private $createdBy;
  25.     #[Groups(['LogService'])]
  26.     #[ORM\Column(type'datetime'nullabletrue)]
  27.     private $updatedAt;
  28.     #[Groups(['LogService'])]
  29.     #[ORM\ManyToOne(targetEntityUser::class)]
  30.     private $updatedBy;
  31.     #[Groups(['LogService'])]
  32.     #[ORM\Column(type'string'length255nullabletrue)]
  33.     private $question;
  34.     #[Groups(['LogService'])]
  35.     #[ORM\Column(type'text'nullabletrue)]
  36.     private $answer;
  37.     #[Groups(['LogService'])]
  38.     #[ORM\Column(type'string'length255nullabletrue)]
  39.     private $keyword;
  40.     #[ORM\Column(type'boolean'nullabletrue)]
  41.     private $isHidden false;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getCompany(): ?Company
  47.     {
  48.         return $this->company;
  49.     }
  50.     public function setCompany(?Company $company): self
  51.     {
  52.         $this->company $company;
  53.         return $this;
  54.     }
  55.     public function getOffice(): ?Office
  56.     {
  57.         return $this->office;
  58.     }
  59.     public function setOffice(?Office $office): self
  60.     {
  61.         $this->office $office;
  62.         return $this;
  63.     }
  64.     public function getCreatedAt(): ?\DateTimeInterface
  65.     {
  66.         return $this->createdAt;
  67.     }
  68.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  69.     {
  70.         $this->createdAt $createdAt;
  71.         return $this;
  72.     }
  73.     public function getCreatedBy(): ?User
  74.     {
  75.         return $this->createdBy;
  76.     }
  77.     public function setCreatedBy(?User $createdBy): self
  78.     {
  79.         $this->createdBy $createdBy;
  80.         return $this;
  81.     }
  82.     public function getUpdatedAt(): ?\DateTimeInterface
  83.     {
  84.         return $this->updatedAt;
  85.     }
  86.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  87.     {
  88.         $this->updatedAt $updatedAt;
  89.         return $this;
  90.     }
  91.     public function getUpdatedBy(): ?User
  92.     {
  93.         return $this->updatedBy;
  94.     }
  95.     public function setUpdatedBy(?User $updatedBy): self
  96.     {
  97.         $this->updatedBy $updatedBy;
  98.         return $this;
  99.     }
  100.     public function getQuestion(): ?string
  101.     {
  102.         return $this->question;
  103.     }
  104.     public function setQuestion(?string $question): self
  105.     {
  106.         $this->question $question;
  107.         return $this;
  108.     }
  109.     public function getAnswer(): ?string
  110.     {
  111.         return $this->answer;
  112.     }
  113.     public function setAnswer(?string $answer): self
  114.     {
  115.         $this->answer $answer;
  116.         return $this;
  117.     }
  118.     public function getIsHidden(): ?bool
  119.     {
  120.         return $this->isHidden;
  121.     }
  122.     public function getKeyword(): ?string
  123.     {
  124.         return $this->keyword;
  125.     }
  126.     public function setKeyword(?string $keyword): self
  127.     {
  128.         $this->keyword $keyword;
  129.         return $this;
  130.     }
  131.     public function setIsHidden(?bool $isHidden): self
  132.     {
  133.         $this->isHidden $isHidden;
  134.         return $this;
  135.     }
  136. }