src/Entity/FixedPages.php line 13

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