src/Entity/Banner.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BannerRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassBannerRepository::class)]
  6. class Banner
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $name null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $slug null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $image null;
  18.     #[ORM\Column]
  19.     private ?bool $active null;
  20.     #[ORM\Column]
  21.     private ?int $clientindex null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getName(): ?string
  27.     {
  28.         return $this->name;
  29.     }
  30.     public function setName(string $name): static
  31.     {
  32.         $this->name $name;
  33.         return $this;
  34.     }
  35.     public function getSlug(): ?string
  36.     {
  37.         return $this->slug;
  38.     }
  39.     public function setSlug(string $slug): static
  40.     {
  41.         $this->slug $slug;
  42.         return $this;
  43.     }
  44.     public function getImage(): ?string
  45.     {
  46.         return $this->image;
  47.     }
  48.     public function setImage(string $image): static
  49.     {
  50.         $this->image $image;
  51.         return $this;
  52.     }
  53.     public function isActive(): ?bool
  54.     {
  55.         return $this->active;
  56.     }
  57.     public function setActive(bool $active): static
  58.     {
  59.         $this->active $active;
  60.         return $this;
  61.     }
  62.     public function getClientIndex(): ?int
  63.     {
  64.         return $this->clientindex;
  65.     }
  66.     public function setClientIndex(int $clientindex): static
  67.     {
  68.         $this->clientindex $clientindex;
  69.         return $this;
  70.     }
  71. }