src/Entity/Accreditation.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Interfaces\DefaultEntity;
  4. use App\Entity\Traits\ActiveTrait;
  5. use App\Entity\Traits\DeleteTrait;
  6. use App\Entity\Traits\ImageUploadTrait;
  7. use App\Entity\Traits\SortOrderTrait;
  8. use App\Entity\Traits\TitleAndContentTrait;
  9. use App\Entity\Traits\TranslateTrait;
  10. use App\Repository\AccreditationRepository;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Gedmo\Mapping\Annotation as Gedmo;
  13. use Gedmo\Timestampable\Traits\TimestampableEntity;
  14. /**
  15. * @Gedmo\Loggable
  16. */
  17. #[ORM\Entity(repositoryClass: AccreditationRepository::class)]
  18. #[ORM\HasLifecycleCallbacks]
  19. #[ORM\Table(name: 'accreditation')]
  20. class Accreditation implements DefaultEntity
  21. {
  22. use TitleAndContentTrait;
  23. use ImageUploadTrait;
  24. use SortOrderTrait;
  25. use ActiveTrait;
  26. use DeleteTrait;
  27. use TimestampableEntity;
  28. use TranslateTrait;
  29. #[ORM\Column(name: 'id', type: 'integer')]
  30. #[ORM\Id]
  31. #[ORM\GeneratedValue(strategy: 'AUTO')]
  32. private readonly int $id;
  33. #[ORM\Column(type: 'boolean')]
  34. private $featured = false;
  35. #[ORM\Column(type: 'string', length: 255, nullable: true)]
  36. private $link;
  37. public function getId(): ?int
  38. {
  39. return $this->id;
  40. }
  41. public function getFeatured(): ?bool
  42. {
  43. return $this->featured;
  44. }
  45. public function setFeatured(bool $featured): self
  46. {
  47. $this->featured = $featured;
  48. return $this;
  49. }
  50. public function getLink(): ?string
  51. {
  52. return $this->link;
  53. }
  54. public function setLink(?string $link): self
  55. {
  56. $this->link = $link;
  57. return $this;
  58. }
  59. }