add set layout api

This commit is contained in:
Yisroel Baum 2026-08-08 23:32:45 +03:00
parent eb7ac7d261
commit 4222d4c0a2
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
16 changed files with 487 additions and 6 deletions

View file

@ -26,6 +26,13 @@ class FakeSetRepository implements SetRepository
return $this->copy($set);
}
public function find(int $id): ?Set
{
$set = $this->sets[$id] ?? null;
return $set === null ? null : $this->copy($set);
}
public function all(): array
{
$sets = array_values($this->sets);