Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

src/Entity/DiscountBanner.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DiscountBannerRepository;
  4. use DateTimeInterface;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassDiscountBannerRepository::class)]
  8. class DiscountBanner
  9. {
  10.     public const ID 1;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::TEXT)]
  16.     private ?string $content null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  18.     private ?DateTimeInterface $dateStart null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?DateTimeInterface $dateEnd null;
  21.     #[ORM\Column]
  22.     private bool $active true;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getContent(): ?string
  28.     {
  29.         return $this->content;
  30.     }
  31.     public function setContent(string $content): self
  32.     {
  33.         $this->content $content;
  34.         return $this;
  35.     }
  36.     public function getDateStart(): ?DateTimeInterface
  37.     {
  38.         return $this->dateStart;
  39.     }
  40.     public function setDateStart(?DateTimeInterface $dateStart): self
  41.     {
  42.         $this->dateStart $dateStart;
  43.         return $this;
  44.     }
  45.     public function getDateEnd(): ?DateTimeInterface
  46.     {
  47.         return $this->dateEnd;
  48.     }
  49.     public function setDateEnd(?DateTimeInterface $dateEnd): self
  50.     {
  51.         $this->dateEnd $dateEnd;
  52.         return $this;
  53.     }
  54.     public function isActive(): ?bool
  55.     {
  56.         return $this->active;
  57.     }
  58.     public function setActive(bool $active): self
  59.     {
  60.         $this->active $active;
  61.         return $this;
  62.     }
  63. }