fix: refactored the codebase

This commit is contained in:
2026-08-20 23:00:47 +02:00
parent 6f47ed0674
commit a77f74911d
64 changed files with 2864 additions and 1739 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Data\Rooms;
use App\Models\Player;
use App\Models\Room;
final readonly class RoomPageData
{
/**
* @param array{average: string|null, median: string|null}|null $statistics
*/
public function __construct(
public Room $room,
public Player $currentPlayer,
public bool $isFavorite,
public ?string $currentVote,
public ?array $statistics,
) {}
}