src/Entity/FixedPages.php line 14

  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Trait\MainTranslationTrait;
  4. use App\Entity\Translation\FixedPagesTranslation;
  5. use App\Repository\FixedPagesRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Gedmo\Translatable\Translatable;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. #[Gedmo\TranslationEntity(class: self::TRANSLATION_ENTITY)]
  10. #[ORM\Entity(repositoryClassFixedPagesRepository::class)]
  11. class FixedPages implements Translatable
  12. {
  13.     use MainTranslationTrait;
  14.     const TRANSLATION_ENTITY FixedPagesTranslation::class;
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue]
  17.     #[ORM\Column]
  18.     private ?int $id null;
  19.     #[ORM\Column(type'string',nullabletrue)]
  20.     #[Gedmo\Translatable]
  21.     private ?string $title;
  22.     #[ORM\Column(type'string',nullabletrue)]
  23.     private ?string $image;
  24.     #[ORM\Column(type'text',nullabletrue)]
  25.     #[Gedmo\Translatable]
  26.     private mixed $description;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     /**
  32.      * @return string|null
  33.      */
  34.     public function getTitle(): ?string
  35.     {
  36.         return $this->title;
  37.     }
  38.     /**
  39.      * @param string|null $title
  40.      */
  41.     public function setTitle(?string $title): void
  42.     {
  43.         $this->title $title;
  44.     }
  45.     /**
  46.      * @return mixed
  47.      */
  48.     public function getDescription(): mixed
  49.     {
  50.         return $this->description;
  51.     }
  52.     /**
  53.      * @param mixed $description
  54.      */
  55.     public function setDescription(mixed $description): void
  56.     {
  57.         $this->description $description;
  58.     }
  59.     /**
  60.      * @return string|null
  61.      */
  62.     public function getImage(): ?string
  63.     {
  64.         return $this->image;
  65.     }
  66.     /**
  67.      * @param string|null $image
  68.      */
  69.     public function setImage(?string $image): void
  70.     {
  71.         $this->image $image;
  72.     }
  73. }