src/Entity/FrontSection.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FrontSectionRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. #[ORM\Entity(repositoryClassFrontSectionRepository::class)]
  8. class FrontSection
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $slug null;
  16.     #[Gedmo\Translatable]
  17.     #[ORM\Column(length128nullabletrue)]
  18.     private ?string $title null;
  19.     #[Gedmo\Translatable]
  20.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  21.     private ?string $content null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $image null;
  24.     #[ORM\Column(length128nullabletrue)]
  25.     private ?string $class null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getSlug(): ?string
  31.     {
  32.         return $this->slug;
  33.     }
  34.     public function setSlug(string $slug): static
  35.     {
  36.         $this->slug $slug;
  37.         return $this;
  38.     }
  39.     public function getTitle(): ?string
  40.     {
  41.         return $this->title;
  42.     }
  43.     public function setTitle(?string $title): static
  44.     {
  45.         $this->title $title;
  46.         return $this;
  47.     }
  48.     public function getContent(): ?string
  49.     {
  50.         return $this->content;
  51.     }
  52.     public function setContent(?string $content): static
  53.     {
  54.         $this->content $content;
  55.         return $this;
  56.     }
  57.     public function getImage(): ?string
  58.     {
  59.         return $this->image;
  60.     }
  61.     public function setImage(?string $image): static
  62.     {
  63.         $this->image $image;
  64.         return $this;
  65.     }
  66.     public function getClass(): ?string
  67.     {
  68.         return $this->class;
  69.     }
  70.     public function setClass(?string $class): static
  71.     {
  72.         $this->class $class;
  73.         return $this;
  74.     }
  75. }