src/Entity/Banner.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BannerRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Anotation as Gedmo;
  7. use Gedmo\Timestampable\Traits\TimestampableEntity;
  8. #[ORM\Entity(repositoryClassBannerRepository::class)]
  9. class Banner
  10. {
  11.     use TimestampableEntity;
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $title null;
  18.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  19.     private ?string $description null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $home_slide null;
  22.     #[Gedmo\Timestampable(on :'create')]
  23.     private ?\DateTimeImmutable $created_at null;
  24.     #[Gedmo\Timestampable(on :'update')]
  25.     private ?\DateTimeImmutable $updated_at null;
  26.     #[ORM\Column]
  27.     private ?bool $status null;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getTitle(): ?string
  33.     {
  34.         return $this->title;
  35.     }
  36.     public function setTitle(?string $title): self
  37.     {
  38.         $this->title $title;
  39.         return $this;
  40.     }
  41.     public function getDescription(): ?string
  42.     {
  43.         return $this->description;
  44.     }
  45.     public function setDescription(?string $description): self
  46.     {
  47.         $this->description $description;
  48.         return $this;
  49.     }
  50.     public function getHomeSlide(): ?string
  51.     {
  52.         return $this->home_slide;
  53.     }
  54.     public function setHomeSlide(string $home_slide): self
  55.     {
  56.         $this->home_slide $home_slide;
  57.         return $this;
  58.     }
  59.     public function getCreatedAt(): ?\DateTimeImmutable
  60.     {
  61.         return $this->created_at;
  62.     }
  63.     public function getUpdatedAt(): ?\DateTimeImmutable
  64.     {
  65.         return $this->updated_at;
  66.     }
  67.     public function isStatus(): ?bool
  68.     {
  69.         return $this->status;
  70.     }
  71.     public function setStatus(bool $status): self
  72.     {
  73.         $this->status $status;
  74.         return $this;
  75.     }
  76. }