expose sets list endpoint

This commit is contained in:
Yisroel Baum 2026-08-03 20:24:36 +03:00
parent 61ab8c09dc
commit 3d96a8d316
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,21 @@
<?php
namespace App\Set\UseCases\ListSets;
use App\Set\Set;
use App\Set\SetRepository;
class ListSets
{
public function __construct(
private SetRepository $setRepository,
) {}
/**
* @return list<Set>
*/
public function execute(): array
{
return $this->setRepository->all();
}
}