2017-03-30 19:39:23 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace ManiaControl\Callbacks\Structures\Common\Models;
|
|
|
|
|
2017-04-04 19:40:19 +02:00
|
|
|
use ManiaControl\General\JsonSerializable;
|
|
|
|
use ManiaControl\General\JsonSerializeTrait;
|
2017-03-30 19:39:23 +02:00
|
|
|
use ManiaControl\General\UsageInformationAble;
|
|
|
|
use ManiaControl\General\UsageInformationTrait;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TeamScore Model
|
|
|
|
*
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @author ManiaControl Team <mail@maniacontrol.com>
|
|
|
|
* @copyright 2014-2017 ManiaControl Team
|
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
|
|
|
*/
|
2017-04-04 19:40:19 +02:00
|
|
|
class CommonTeamScore implements UsageInformationAble, JsonSerializable {
|
|
|
|
use UsageInformationTrait, JsonSerializeTrait;
|
2017-03-30 19:39:23 +02:00
|
|
|
|
2017-04-04 19:40:19 +02:00
|
|
|
private $teamId;
|
2017-03-30 19:39:23 +02:00
|
|
|
private $name;
|
|
|
|
private $roundPoints;
|
|
|
|
private $mapPoints;
|
|
|
|
private $matchPoints;
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Get the Team Id
|
|
|
|
*
|
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @return mixed
|
|
|
|
*/
|
2017-04-04 19:40:19 +02:00
|
|
|
public function getTeamId() {
|
|
|
|
return $this->teamId;
|
2017-03-30 19:39:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Sets the TeamId
|
|
|
|
*
|
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @param mixed $id
|
|
|
|
*/
|
2017-04-04 19:40:19 +02:00
|
|
|
public function setTeamId($id) {
|
|
|
|
$this->teamId = $id;
|
2017-03-30 19:39:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Gets the Name
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @return string
|
2017-03-30 19:39:23 +02:00
|
|
|
*/
|
|
|
|
public function getName() {
|
|
|
|
return $this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Sets the Name
|
|
|
|
*
|
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @param mixed $name
|
|
|
|
*/
|
|
|
|
public function setName($name) {
|
|
|
|
$this->name = $name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Gets the Round Points
|
|
|
|
*
|
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getRoundPoints() {
|
|
|
|
return $this->roundPoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Sets the Round Points
|
|
|
|
*
|
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @param mixed $roundPoints
|
|
|
|
*/
|
|
|
|
public function setRoundPoints($roundPoints) {
|
|
|
|
$this->roundPoints = $roundPoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Gets the Map Points
|
|
|
|
*
|
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getMapPoints() {
|
|
|
|
return $this->mapPoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Sets the Mappoints
|
|
|
|
*
|
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @param mixed $mapPoints
|
|
|
|
*/
|
|
|
|
public function setMapPoints($mapPoints) {
|
|
|
|
$this->mapPoints = $mapPoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Gets the Matchpoints
|
|
|
|
*
|
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getMatchPoints() {
|
|
|
|
return $this->matchPoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Sets the Match Points
|
|
|
|
*
|
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @param mixed $matchPoints
|
|
|
|
*/
|
|
|
|
public function setMatchPoints($matchPoints) {
|
|
|
|
$this->matchPoints = $matchPoints;
|
|
|
|
}
|
|
|
|
}
|