src/Flexy/ShopBundle/Entity/Order/EventCalendar.php line 11
<?php
namespace App\Flexy\ShopBundle\Entity\Order;
use App\Flexy\ShopBundle\Repository\Order\EventCalendarRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: EventCalendarRepository::class)]
class EventCalendar
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(nullable: true)]
private ?int $product_id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $title = null;
#[ORM\Column(type: 'datetime_immutable',nullable: true)]
private ?\DateTimeImmutable $date_start = null;
#[ORM\Column(type: 'datetime_immutable',nullable: true)]
private ?\DateTimeImmutable $end_date = null;
public function getId(): ?int
{
return $this->id;
}
public function getProductId(): ?int
{
return $this->product_id;
}
public function setProductId(?int $product_id): static
{
$this->product_id = $product_id;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): static
{
$this->title = $title;
return $this;
}
public function getDateStart(): ?\DateTimeImmutable
{
return $this->date_start;
}
public function setDateStart(?\DateTimeImmutable $date_start): static
{
$this->date_start = $date_start;
return $this;
}
public function getEndDate(): ?\DateTimeImmutable
{
return $this->end_date;
}
public function setEndDate(?\DateTimeImmutable $end_date): static
{
$this->end_date = $end_date;
return $this;
}
}