2014-02-25 18:34:35 +01:00
|
|
|
<?php
|
2014-04-12 12:14:37 +02:00
|
|
|
|
|
|
|
namespace ManiaControl\Bills;
|
|
|
|
|
2014-02-25 18:34:35 +01:00
|
|
|
/**
|
|
|
|
* ManiaControl BillData Structure
|
|
|
|
*
|
2014-04-12 12:14:37 +02:00
|
|
|
* @author kremsy
|
|
|
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
2014-02-25 18:34:35 +01:00
|
|
|
*/
|
|
|
|
class BillData {
|
2014-04-12 12:14:37 +02:00
|
|
|
/*
|
|
|
|
* Public Properties
|
|
|
|
*/
|
2014-02-25 18:34:35 +01:00
|
|
|
public $function = null;
|
|
|
|
public $pay = false;
|
|
|
|
public $player = null;
|
|
|
|
public $receiverLogin = false;
|
|
|
|
public $amount = 0;
|
|
|
|
public $creationTime = -1;
|
|
|
|
|
2014-04-12 12:14:37 +02:00
|
|
|
/**
|
|
|
|
* Construct new BillData
|
|
|
|
* @param unknown $function
|
|
|
|
* @param unknown $player
|
|
|
|
* @param unknown $amount
|
|
|
|
* @param string $pay
|
|
|
|
* @param string $receiverLogin
|
|
|
|
*/
|
2014-02-25 18:34:35 +01:00
|
|
|
public function __construct($function, $player, $amount, $pay = false, $receiverLogin = false) {
|
|
|
|
$this->function = $function;
|
|
|
|
$this->player = $player;
|
|
|
|
$this->amount = $amount;
|
|
|
|
$this->pay = $pay;
|
|
|
|
$this->receiverLogin = $receiverLogin;
|
|
|
|
$this->creationTime = time();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|