add set persistence
This commit is contained in:
parent
4ac01460fd
commit
5b9df7d02a
7 changed files with 167 additions and 0 deletions
29
backend/app/Set/Set.php
Normal file
29
backend/app/Set/Set.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue