From f27cca08ff786ceff1870147f6d6bad14d71117f Mon Sep 17 00:00:00 2001 From: polo Date: Fri, 23 Oct 2026 00:47:32 +0200 Subject: =?UTF-8?q?dossiers=20avec=20majuscule,=20namespace=20pour=20toute?= =?UTF-8?q?s=20les=20classes,=20autoload=20psr-4,=20UserDataService::creat?= =?UTF-8?q?eZip=20d=C3=A9plac=C3=A9=20dans=20Backup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/EventDTO.php | 51 -------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/model/EventDTO.php (limited to 'src/model/EventDTO.php') diff --git a/src/model/EventDTO.php b/src/model/EventDTO.php deleted file mode 100644 index 6dd3722..0000000 --- a/src/model/EventDTO.php +++ /dev/null @@ -1,51 +0,0 @@ -id = $event->getId(); - $this->title = $event->getTitle(); - $this->description = $event->getDescription() ?? ''; // renvoie $event->getDescription() si existe et ne vaut pas "null" - $this->allDay = $event->isAllDay(); - $this->color = $event->getColor(); - - if($this->allDay){ - $this->start = $event->getStart()->format('Y-m-d'); - $this->end = $event->getEnd()->format('Y-m-d'); - } - else{ - $this->start = $event->getStart()->format('Y-m-d\TH:i:s\Z'); - $this->end = $event->getEnd()->format('Y-m-d\TH:i:s\Z'); - } - } - - public function toArray(): array - { - return [ - 'id' => $this->id, - 'title' => $this->title, - 'description' => $this->description, - 'start' => $this->start, - 'end' => $this->end, - 'allDay' => $this->allDay, - 'color' => $this->color, - ]; - } -} -- cgit v1.2.3