<?php
namespace App\Entity;
use Symfony\Component\Serializer\Annotation\Groups;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: 'App\Repository\QnARepository')]
class QnA
{
#[Groups(['LogService'])]
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: Company::class, inversedBy: 'QnAs')]
#[ORM\JoinColumn(nullable: false)]
private $company;
#[ORM\ManyToOne(targetEntity: Office::class, inversedBy: 'QnAs')]
private $office;
#[Groups(['LogService'])]
#[ORM\Column(type: 'datetime')]
private $createdAt;
#[Groups(['LogService'])]
#[ORM\ManyToOne(targetEntity: User::class)]
#[ORM\JoinColumn(nullable: false)]
private $createdBy;
#[Groups(['LogService'])]
#[ORM\Column(type: 'datetime', nullable: true)]
private $updatedAt;
#[Groups(['LogService'])]
#[ORM\ManyToOne(targetEntity: User::class)]
private $updatedBy;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $question;
#[Groups(['LogService'])]
#[ORM\Column(type: 'text', nullable: true)]
private $answer;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $keyword;
#[ORM\Column(type: 'boolean', nullable: true)]
private $isHidden = false;
public function getId(): ?int
{
return $this->id;
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
public function getOffice(): ?Office
{
return $this->office;
}
public function setOffice(?Office $office): self
{
$this->office = $office;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->createdBy;
}
public function setCreatedBy(?User $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getUpdatedBy(): ?User
{
return $this->updatedBy;
}
public function setUpdatedBy(?User $updatedBy): self
{
$this->updatedBy = $updatedBy;
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 getIsHidden(): ?bool
{
return $this->isHidden;
}
public function getKeyword(): ?string
{
return $this->keyword;
}
public function setKeyword(?string $keyword): self
{
$this->keyword = $keyword;
return $this;
}
public function setIsHidden(?bool $isHidden): self
{
$this->isHidden = $isHidden;
return $this;
}
}