Implermented front page and set public
This commit is contained in:
parent
15a9dcf09b
commit
d6ebf8f4ff
18 changed files with 658 additions and 23 deletions
|
@ -31,6 +31,9 @@ final class Key implements JsonSerializable
|
|||
#[ORM\Column(type: 'integer', enumType: KeyState::class)]
|
||||
private KeyState $state;
|
||||
|
||||
#[ORM\ManyToOne]
|
||||
private User $claimedUser;
|
||||
|
||||
public function __construct(Game $game, GamesList $list, string $key, Store $store, ?string $storeLink, ?string $fromWhere)
|
||||
{
|
||||
$this->game = $game;
|
||||
|
@ -52,11 +55,6 @@ final class Key implements JsonSerializable
|
|||
return $this->game;
|
||||
}
|
||||
|
||||
public function getContributedUser(): User
|
||||
{
|
||||
return $this->contributedUser;
|
||||
}
|
||||
|
||||
public function getKey(): string
|
||||
{
|
||||
return $this->key;
|
||||
|
@ -81,6 +79,19 @@ final class Key implements JsonSerializable
|
|||
{
|
||||
return $this->state;
|
||||
}
|
||||
|
||||
public function getList(): GamesList
|
||||
{
|
||||
return $this->list;
|
||||
}
|
||||
|
||||
public function setState(KeyState $state): void {
|
||||
$this->state = $state;
|
||||
}
|
||||
|
||||
public function setClaimedUser(User $claimedUser): void {
|
||||
$this->claimedUser = $claimedUser;
|
||||
}
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue