<?php

namespace App\Game\BetBy;

class PlayerDetails
{
    public $playerId;
    public $name;
    public $email;
    public $balance;
    // 其他属性...

    public function __construct(array $data)
    {
        $this->playerId = $data['player_id'];
        $this->name = $data['name'];
        $this->email = $data['email'];
        $this->balance = $data['balance'];
        // 其他属性...
    }
}
