add set persistence

This commit is contained in:
Yisroel Baum 2026-08-03 20:22:58 +03:00
parent 4ac01460fd
commit 5b9df7d02a
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
7 changed files with 167 additions and 0 deletions

29
backend/app/Set/Set.php Normal file
View file

@ -0,0 +1,29 @@
<?php
namespace App\Set;
use App\User\User;
final readonly class Set
{
public function __construct(
private int $id,
private string $name,
private User $creator,
) {}
public function getId(): int
{
return $this->id;
}
public function getName(): string
{
return $this->name;
}
public function getCreator(): User
{
return $this->creator;
}
}