41 lines
964 B
PHP
41 lines
964 B
PHP
<?php
|
|
|
|
namespace ManiaControl\Bills;
|
|
use ManiaControl\Players\Player;
|
|
|
|
/**
|
|
* ManiaControl BillData Structure
|
|
*
|
|
* @author kremsy
|
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
|
*/
|
|
class BillData {
|
|
/*
|
|
* Public Properties
|
|
*/
|
|
public $function = null;
|
|
public $pay = false;
|
|
public $player = null;
|
|
public $receiverLogin = null;
|
|
public $amount = 0;
|
|
public $creationTime = -1;
|
|
|
|
/**
|
|
* Construct new BillData
|
|
* @param mixed $function
|
|
* @param Player $player
|
|
* @param int $amount
|
|
* @param bool $pay
|
|
* @param string $receiverLogin
|
|
*/
|
|
public function __construct($function, Player $player, $amount, $pay = false, $receiverLogin = null) {
|
|
$this->function = $function;
|
|
$this->player = $player;
|
|
$this->amount = $amount;
|
|
$this->pay = $pay;
|
|
$this->receiverLogin = $receiverLogin;
|
|
$this->creationTime = time();
|
|
}
|
|
|
|
}
|