<?phpnamespace App\Entity\Main;use App\Repository\CalendarRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=CalendarRepository::class) */class Calendar{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $designation; /** * @ORM\Column(type="string", length=20) */ private $type; /** * @ORM\Column(type="datetime") */ private $from_date; // Pour le formulaire private $date_from; private $hour_from; /** * @ORM\Column(type="datetime") */ private $to_date; // Pour le formulaire private $date_to; private $hour_to; /** * @ORM\Column(type="integer") */ private $priority; private $dateTimeZone; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $activityClosed; /** * Constructor */ public function __construct() { $this->dateTimeZone = new \DateTimeZone('Europe/Paris'); $this->hour_from = new \DateTime('2000-01-01 01:00:00', $this->dateTimeZone); $this->hour_to = new \DateTime('2000-01-01 01:00:00', $this->dateTimeZone); } public function getId(): ?int { return $this->id; } public function getDesignation(): ?string { return $this->designation; } public function setDesignation(?string $designation): self { $this->designation = $designation; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function getFromDate(): ?\DateTimeInterface { return $this->from_date; } public function setFromDate(\DateTimeInterface $from_date): self { $this->from_date = $from_date; return $this; } public function getToDate(): ?\DateTimeInterface { return $this->to_date; } public function setToDate(\DateTimeInterface $to_date): self { $this->to_date = $to_date; return $this; } public function getPriority(): ?int { return $this->priority; } public function setPriority(int $priority): self { $this->priority = $priority; return $this; } public function getActivityClosed(): ?string { return $this->activityClosed; } public function setActivityClosed(?string $activityClosed): self { $this->activityClosed = $activityClosed; return $this; }}