src/Flexy/ShopBundle/Entity/Order/EventCalendar.php line 11

  1. <?php
  2. namespace App\Flexy\ShopBundle\Entity\Order;
  3. use App\Flexy\ShopBundle\Repository\Order\EventCalendarRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassEventCalendarRepository::class)]
  7. class EventCalendar
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(nullabletrue)]
  14.     private ?int $product_id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $title null;
  17.     #[ORM\Column(type'datetime_immutable',nullabletrue)]
  18.  
  19.     private ?\DateTimeImmutable $date_start null;
  20.     #[ORM\Column(type'datetime_immutable',nullabletrue)]
  21.     private ?\DateTimeImmutable $end_date null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getProductId(): ?int
  27.     {
  28.         return $this->product_id;
  29.     }
  30.     public function setProductId(?int $product_id): static
  31.     {
  32.         $this->product_id $product_id;
  33.         return $this;
  34.     }
  35.     public function getTitle(): ?string
  36.     {
  37.         return $this->title;
  38.     }
  39.     public function setTitle(?string $title): static
  40.     {
  41.         $this->title $title;
  42.         return $this;
  43.     }
  44.     public function getDateStart(): ?\DateTimeImmutable
  45.     {
  46.         return $this->date_start;
  47.     }
  48.     public function setDateStart(?\DateTimeImmutable $date_start): static
  49.     {
  50.         $this->date_start $date_start;
  51.         return $this;
  52.     }
  53.     public function getEndDate(): ?\DateTimeImmutable
  54.     {
  55.         return $this->end_date;
  56.     }
  57.     public function setEndDate(?\DateTimeImmutable $end_date): static
  58.     {
  59.         $this->end_date $end_date;
  60.         return $this;
  61.     }
  62. }