src/Entity/FixedPages.php line 12

  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. #[ORM\Entity(repositoryClassFixedPagesRepository::class)]
  9. class FixedPages implements Translatable
  10. {
  11.     use MainTranslationTrait;
  12.     const TRANSLATION_ENTITY FixedPagesTranslation::class;
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     private ?int $id null;
  17.     #[ORM\Column(type'string',nullabletrue)]
  18.     #[Gedmo\Translatable]
  19.     private ?string $title null;
  20.     #[ORM\Column(type'string',nullabletruelength500)]
  21.     #[Gedmo\Translatable]
  22.     private ?string $shortDescription null;
  23.     #[ORM\Column(type'string',nullabletrue)]
  24.     private ?string $image null;
  25.     #[ORM\Column(type'text',nullabletrue)]
  26.     #[Gedmo\Translatable]
  27.     private mixed $description null;
  28.     #[Gedmo\Slug(fields: ['title'], updatablefalse)]
  29.     #[ORM\Column(type'string'uniquetruenullabletrue)]
  30.     private string $slug;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     /**
  36.      * @return string|null
  37.      */
  38.     public function getTitle()
  39.     {
  40.         return $this->title;
  41.     }
  42.     /**
  43.      * @param string|null $title
  44.      */
  45.     public function setTitle($title)
  46.     {
  47.         $this->title $title;
  48.     }
  49.     /**
  50.      * @return string|null
  51.      */
  52.     public function getShortDescription()
  53.     {
  54.         return $this->shortDescription;
  55.     }
  56.     /**
  57.      * @param string|null $shortDescription
  58.      */
  59.     public function setShortDescription($shortDescription)
  60.     {
  61.         $this->shortDescription $shortDescription;
  62.     }
  63.     /**
  64.      * @return string|null
  65.      */
  66.     public function getImage()
  67.     {
  68.         return $this->image;
  69.     }
  70.     /**
  71.      * @param string|null $image
  72.      */
  73.     public function setImage($image)
  74.     {
  75.         $this->image $image;
  76.     }
  77.     /**
  78.      * @return mixed|null
  79.      */
  80.     public function getDescription()
  81.     {
  82.         return $this->description;
  83.     }
  84.     /**
  85.      * @param mixed|null $description
  86.      */
  87.     public function setDescription($description)
  88.     {
  89.         $this->description $description;
  90.     }
  91.     /**
  92.      * @return string
  93.      */
  94.     public function getSlug()
  95.     {
  96.         return $this->slug;
  97.     }
  98.     /**
  99.      * @param string $slug
  100.      */
  101.     public function setSlug($slug)
  102.     {
  103.         $this->slug $slug;
  104.     }
  105. }