wrap set layout input

This commit is contained in:
Yisroel Baum 2026-08-09 09:38:46 +03:00
parent b4a2107724
commit fac49e43d4
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 14 additions and 3 deletions

View file

@ -17,9 +17,9 @@ class GetSetLayout
/**
* @throws NotFoundException
*/
public function execute(int $setId): SetLayout
public function execute(GetSetLayoutRequest $request): SetLayout
{
$set = $this->setRepository->find($setId);
$set = $this->setRepository->find($request->setId);
if ($set === null) {
throw new NotFoundException('set not found');
}