You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BOB_PARTY/api-rest/model/user.php

34 lines
1.0 KiB

<?php
class User {
// Object attributes
public string $id;
public string $username;
public string $password;
public string $nationality;
public string $sex;
public string $dateOfBirth;
public int $currentBobCoins;
public int $totalBobCoins;
public int $nbGamesPlayed;
public string $currentSkin;
public $listIdSkin;
public function __construct(string $_id,string $_username,string $_password, string $_nationality,string $_sex, string $_dateOfBirth, int $_currentBobCoins, int $_totalBobCoins, int $_nbGamesPlayed, string $_currentSkin, $_listIdSkin){
$this->id=$_id;
$this->username=$_username;
$this->password=$_password;
$this->nationality=$_nationality;
$this->sex=$_sex;
$this->dateOfBirth=$_dateOfBirth;
$this->currentBobCoins=$_currentBobCoins;
$this->totalBobCoins=$_totalBobCoins;
$this->nbGamesPlayed=$_nbGamesPlayed;
$this->currentSkin=$_currentSkin;
$this->listIdSkin=$_listIdSkin;
}
}
?>