TrackManiaControl/application/core/Bills/BillData.php

41 lines
964 B
PHP
Raw Normal View History

2014-02-25 18:34:35 +01:00
<?php
namespace ManiaControl\Bills;
2014-04-19 22:59:11 +02:00
use ManiaControl\Players\Player;
2014-02-25 18:34:35 +01:00
/**
* ManiaControl BillData Structure
*
* @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 {
/*
* Public Properties
*/
2014-02-25 18:34:35 +01:00
public $function = null;
public $pay = false;
public $player = null;
public $receiverLogin = null;
2014-02-25 18:34:35 +01:00
public $amount = 0;
public $creationTime = -1;
/**
* Construct new BillData
2014-04-19 22:59:11 +02:00
* @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) {
2014-02-25 18:34:35 +01:00
$this->function = $function;
$this->player = $player;
$this->amount = $amount;
$this->pay = $pay;
$this->receiverLogin = $receiverLogin;
$this->creationTime = time();
}
}