<?php
namespace App\Entity;
use App\Entity\Interfaces\DefaultEntity;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Traits\DeleteTrait;
use App\Entity\Traits\ImageUploadTrait;
use App\Entity\Traits\SortOrderTrait;
use App\Entity\Traits\TitleAndContentTrait;
use App\Entity\Traits\TranslateTrait;
use App\Repository\AccreditationRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
* @Gedmo\Loggable
*/
#[ORM\Entity(repositoryClass: AccreditationRepository::class)]
#[ORM\HasLifecycleCallbacks]
#[ORM\Table(name: 'accreditation')]
class Accreditation implements DefaultEntity
{
use TitleAndContentTrait;
use ImageUploadTrait;
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 = false;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $link;
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 getLink(): ?string
{
return $this->link;
}
public function setLink(?string $link): self
{
$this->link = $link;
return $this;
}
}