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; /**