From 327a8a8c822e650669bb1eb436fb5115d9a087b6 Mon Sep 17 00:00:00 2001 From: vhande Date: Thu, 27 Jun 2024 13:45:47 +0200 Subject: [PATCH] Add OrganizerMapper --- .../Integrations/Mappers/OrganizerMapper.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 app/Domain/Integrations/Mappers/OrganizerMapper.php diff --git a/app/Domain/Integrations/Mappers/OrganizerMapper.php b/app/Domain/Integrations/Mappers/OrganizerMapper.php new file mode 100644 index 000000000..f0d0a17e0 --- /dev/null +++ b/app/Domain/Integrations/Mappers/OrganizerMapper.php @@ -0,0 +1,33 @@ +input('organizers') ?? [] as $organizer) { + $organizers[] = new Organizer( + Uuid::uuid4(), + Uuid::fromString($id), + Uuid::fromString($organizer['id']) + ); + } + + return $organizers; + } +}