From 8ec7af8a1f17f469a133d5233b0337f62c0dee68 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Mon, 25 May 2026 08:37:07 +0300 Subject: [PATCH] restore set creation --- backend/app/Set/CreateSetDto.php | 10 ++++++++++ backend/app/Set/EloquentSetRepository.php | 9 +++++++++ backend/app/Set/SetRepository.php | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 backend/app/Set/CreateSetDto.php diff --git a/backend/app/Set/CreateSetDto.php b/backend/app/Set/CreateSetDto.php new file mode 100644 index 0000000..2999a88 --- /dev/null +++ b/backend/app/Set/CreateSetDto.php @@ -0,0 +1,10 @@ + $dto->name, + ]); + + return $this->toDomain($model); + } + public function find(int $id): ?Set { $model = SetModel::find($id); diff --git a/backend/app/Set/SetRepository.php b/backend/app/Set/SetRepository.php index 075173f..7f1efcd 100644 --- a/backend/app/Set/SetRepository.php +++ b/backend/app/Set/SetRepository.php @@ -4,6 +4,8 @@ namespace App\Set; interface SetRepository { + public function create(CreateSetDto $dto): Set; + public function find(int $id): ?Set; /**