2016-06-23 21:41:46 +02:00
|
|
|
<?php class User
|
2015-12-09 19:06:04 +01:00
|
|
|
{
|
2016-06-19 23:21:12 +02:00
|
|
|
/** @var Int */
|
|
|
|
private $id;
|
|
|
|
|
2015-12-09 19:06:04 +01:00
|
|
|
/** @var String */
|
|
|
|
private $uuid;
|
|
|
|
|
|
|
|
/** @var String */
|
|
|
|
private $username;
|
|
|
|
|
2016-01-17 00:45:37 +01:00
|
|
|
/** @var String */
|
|
|
|
private $rank;
|
|
|
|
|
2015-12-09 19:06:04 +01:00
|
|
|
/**
|
|
|
|
* Player constructor.
|
2016-06-19 23:21:12 +02:00
|
|
|
* @param Int $id
|
2015-12-09 19:06:04 +01:00
|
|
|
* @param String $uuid
|
|
|
|
* @param String $username
|
2016-01-17 00:45:37 +01:00
|
|
|
* @param String $rank
|
2015-12-09 19:06:04 +01:00
|
|
|
*/
|
2016-06-23 15:48:57 +02:00
|
|
|
function __construct($id, $uuid, $username, $rank)
|
2015-12-09 19:06:04 +01:00
|
|
|
{
|
2016-06-19 23:21:12 +02:00
|
|
|
$this->id = $id;
|
2015-12-09 19:06:04 +01:00
|
|
|
$this->uuid = $uuid;
|
|
|
|
$this->username = $username;
|
2016-01-17 00:45:37 +01:00
|
|
|
$this->rank = $rank;
|
2015-12-09 19:06:04 +01:00
|
|
|
}
|
|
|
|
|
2016-06-19 23:21:12 +02:00
|
|
|
/**
|
|
|
|
* @return Int
|
|
|
|
*/
|
|
|
|
public function getId()
|
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
2015-12-09 19:06:04 +01:00
|
|
|
/**
|
|
|
|
* @return String
|
|
|
|
*/
|
|
|
|
public function getUUID()
|
|
|
|
{
|
|
|
|
return $this->uuid;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return String
|
|
|
|
*/
|
|
|
|
public function getUsername()
|
|
|
|
{
|
|
|
|
return $this->username;
|
|
|
|
}
|
2016-01-17 00:45:37 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return String
|
|
|
|
*/
|
|
|
|
public function getRank()
|
|
|
|
{
|
|
|
|
return $this->rank;
|
|
|
|
}
|
2015-12-09 19:06:04 +01:00
|
|
|
}
|