mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 23:12:08 +00:00
fix: refactored the codebase
This commit is contained in:
@@ -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,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user