2014-05-24 17:22:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace ManiaControl\Callbacks\Models;
|
|
|
|
|
|
|
|
use ManiaControl\Players\Player;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Base Model Class for Callbacks
|
|
|
|
*
|
|
|
|
* @author ManiaControl Team <mail@maniacontrol.com>
|
2017-02-04 11:49:23 +01:00
|
|
|
* @copyright 2014-2017 ManiaControl Team
|
2014-05-24 17:22:48 +02:00
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
|
|
|
*/
|
|
|
|
abstract class BaseCallback {
|
|
|
|
/*
|
|
|
|
* Public Properties
|
|
|
|
*/
|
|
|
|
public $name = null;
|
|
|
|
public $rawCallback = null;
|
2014-05-24 18:32:09 +02:00
|
|
|
public $isLegacyCallback = null;
|
2014-05-24 17:22:48 +02:00
|
|
|
|
|
|
|
public $pid = null;
|
|
|
|
public $login = null;
|
2014-05-24 20:39:18 +02:00
|
|
|
/** @var Player $player */
|
2014-05-24 17:22:48 +02:00
|
|
|
public $player = null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the corresponding Player
|
|
|
|
*
|
|
|
|
* @param Player $player
|
|
|
|
*/
|
|
|
|
public function setPlayer(Player $player) {
|
|
|
|
$this->pid = $player->pid;
|
|
|
|
$this->login = $player->login;
|
|
|
|
$this->player = $player;
|
|
|
|
}
|
|
|
|
}
|