72 lines
1.4 KiB
PHP
72 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Entity\Traits\BlameableEntity;
|
|
use App\Entity\Traits\TimestampableEntity;
|
|
use App\Repository\FaqRepository;
|
|
use Doctrine\DBAL\Types\Types;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: FaqRepository::class)]
|
|
class Faq implements BlameableEntityInterface, TimestampableEntityInterface
|
|
{
|
|
use BlameableEntity;
|
|
use TimestampableEntity;
|
|
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\Column(type: Types::TEXT)]
|
|
private ?string $question = null;
|
|
|
|
#[ORM\Column(type: Types::TEXT)]
|
|
private ?string $answer = null;
|
|
|
|
#[ORM\Column]
|
|
private int $sorting = 0;
|
|
|
|
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 getAnswer(): ?string
|
|
{
|
|
return $this->answer;
|
|
}
|
|
|
|
public function setAnswer(string $answer): static
|
|
{
|
|
$this->answer = $answer;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getSorting(): int
|
|
{
|
|
return $this->sorting;
|
|
}
|
|
|
|
public function setSorting(int $sorting): static
|
|
{
|
|
$this->sorting = $sorting;
|
|
|
|
return $this;
|
|
}
|
|
}
|