<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\FAQRepository;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Traits\DeleteTrait;
use App\Entity\Traits\SortOrderTrait;
use App\Entity\Traits\TranslateTrait;
use Gedmo\Mapping\Annotation as Gedmo;
use App\Entity\Interfaces\DefaultEntity;
use App\Entity\Traits\TitleAndContentTrait;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
* @Gedmo\Loggable
*/
#[ORM\Entity(repositoryClass: FAQRepository::class)]
#[ORM\HasLifecycleCallbacks]
#[ORM\Table(name: 'faq')]
class FAQ implements DefaultEntity
{
use TitleAndContentTrait;
use SortOrderTrait;
use ActiveTrait;
use DeleteTrait;
use TimestampableEntity;
use TranslateTrait;
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private readonly int $id;
#[ORM\Column(type: 'boolean')]
private $featured;
#[ORM\ManyToOne(targetEntity: ServiceCategory::class)]
#[ORM\JoinColumn(nullable: false)]
private $serviceCategory;
public function getId(): ?int
{
return $this->id;
}
public function getFeatured(): ?bool
{
return $this->featured;
}
public function setFeatured(bool $featured): self
{
$this->featured = $featured;
return $this;
}
public function getServiceCategory(): ?ServiceCategory
{
return $this->serviceCategory;
}
public function setServiceCategory(?ServiceCategory $serviceCategory): self
{
$this->serviceCategory = $serviceCategory;
return $this;
}
}