<?php
namespace App\Entity;
use App\Repository\CustomerFaqItemRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CustomerFaqItemRepository::class)]
class CustomerFaqItem
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $description = null;
#[ORM\Column]
private ?int $sortingIndex = null;
#[ORM\ManyToOne(inversedBy: 'items')]
#[ORM\JoinColumn(nullable: false)]
private ?CustomerFaq $customerFaq = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getSortingIndex(): ?int
{
return $this->sortingIndex;
}
public function setSortingIndex(int $sortingIndex): self
{
$this->sortingIndex = $sortingIndex;
return $this;
}
public function getCustomerFaq(): ?CustomerFaq
{
return $this->customerFaq;
}
public function setCustomerFaq(?CustomerFaq $customerFaq): self
{
$this->customerFaq = $customerFaq;
return $this;
}
}