2017-04-07 22:30:55 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: Lukas
|
|
|
|
* Date: 07. Apr. 2017
|
|
|
|
* Time: 22:01
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace ManiaControl\Callbacks\Structures\ShootMania\Models;
|
|
|
|
|
|
|
|
|
|
|
|
use ManiaControl\General\UsageInformationAble;
|
|
|
|
use ManiaControl\General\UsageInformationTrait;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* JoustScore Model
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @author ManiaControl Team <mail@maniacontrol.com>
|
2019-01-05 21:02:24 +01:00
|
|
|
* @copyright 2014-2019 ManiaControl Team
|
2017-04-07 22:30:55 +02:00
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
|
|
|
*/
|
|
|
|
class JoustScore implements UsageInformationAble {
|
|
|
|
use UsageInformationTrait;
|
|
|
|
|
|
|
|
/** @var \ManiaControl\Players\Player $player */
|
|
|
|
private $player;
|
|
|
|
private $score;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the Player
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @return \ManiaControl\Players\Player
|
|
|
|
*/
|
|
|
|
public function getPlayer() {
|
|
|
|
return $this->player;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the Player
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param \ManiaControl\Players\Player $player
|
|
|
|
*/
|
|
|
|
public function setPlayer($player) {
|
|
|
|
$this->player = $player;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the Score
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getScore() {
|
|
|
|
return $this->score;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the Score
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param mixed int
|
|
|
|
*/
|
|
|
|
public function setScore($score) {
|
|
|
|
$this->score = $score;
|
|
|
|
}
|
|
|
|
}
|