Player.php 693 Bytes
<?php

namespace FootyRoom\Queries\Predictor;

use FootyRoom\Core\Predictor\Player as PlayerDomainModel;

class Player
{
    public function __construct(int $userId, string $username)
    {
        $this->userId = $userId;
        $this->username = $username;
        $this->points = PlayerDomainModel::STARTING_POINTS; 
        $this->locked = 0;
    }

    /** @var int */
    public $userId;

    /** @var string */
    public $username;

    /** @var int */
    public $points;

    /** @var int */
    public $locked;

    /** @var int */
    public $profit;

    /** @var int */
    public $rank;

    /** @var int */
    public $correct;

    /** @var int */
    public $predictions;
}