src/Entity/Content/FAQ/Faq.php line 21
<?php
namespace App\Entity\Content\FAQ;
use App\Entity\Common\Owner;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Traits\TrackerFields;
use App\Entity\Traits\UserCreatedInterface;
use App\Entity\Traits\UserUpdatedInterface;
use App\Entity\Traits\WeightTrait;
use App\Model\Common\HaveOwnerInterface;
use App\Model\Translation\TranslatableTrait;
use App\Repository\Content\FaqRepository;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
#[ORM\Table(name: 'faq')]
#[ORM\Entity(repositoryClass: FaqRepository::class)]
#[ORM\Index(fields: ["deleted", 'active', 'weight', 'publishAt'], name: 'idx_active')]
#[ORM\HasLifecycleCallbacks]
class Faq implements UserCreatedInterface, UserUpdatedInterface, HaveOwnerInterface, TranslatableInterface
{
use TrackerFields;
use WeightTrait;
use TranslatableTrait;
use ActiveTrait;
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
private ?\DateTimeImmutable $publishAt = null;
#[ORM\Embedded(class: \App\Entity\Common\Owner::class)]
private Owner $owner;
public function __construct()
{
$this->owner = new Owner();
}
public function getId(): ?int
{
return $this->id;
}
public function setId(?int $id): void
{
$this->id = $id;
}
public function getPublishAt(): ?\DateTimeImmutable
{
return $this->publishAt;
}
public function setPublishAt(?\DateTimeImmutable $publishAt): void
{
$this->publishAt = $publishAt;
}
public function getOwner(): Owner
{
return $this->owner;
}
public function setOwner(Owner $owner): void
{
$this->owner = $owner;
}
}