added license and copyright annotations

improved phpdoc
This commit is contained in:
Steffen Schröder
2014-04-12 12:14:37 +02:00
parent 07a63cf518
commit 08cad46cfc
61 changed files with 345 additions and 204 deletions

View File

@@ -1,13 +1,18 @@
<?php
namespace ManiaControl\Bills;
/**
* ManiaControl BillData Structure
*
* @author kremsy and steeffeen
* @author kremsy
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
namespace ManiaControl\Bills;
class BillData {
/*
* Public Properties
*/
public $function = null;
public $pay = false;
public $player = null;
@@ -15,6 +20,14 @@ class BillData {
public $amount = 0;
public $creationTime = -1;
/**
* Construct new BillData
* @param unknown $function
* @param unknown $player
* @param unknown $amount
* @param string $pay
* @param string $receiverLogin
*/
public function __construct($function, $player, $amount, $pay = false, $receiverLogin = false) {
$this->function = $function;
$this->player = $player;

View File

@@ -1,11 +1,6 @@
<?php
/**
* ManiaControl Bill-Manager
*
* @author kremsy and steeffeen
*/
namespace ManiaControl\Bills;
namespace ManiaControl\Bills;
use ManiaControl\Callbacks\CallbackListener;
use ManiaControl\Callbacks\CallbackManager;
@@ -14,8 +9,15 @@ use ManiaControl\Players\Player;
use Maniaplanet\DedicatedServer\Structures\Bill;
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
/**
* ManiaControl Bill-Manager
*
* @author kremsy
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class BillManager implements CallbackListener {
/**
/*
* Constants
*/
const DONATED_TO_SERVER = 1;
@@ -24,7 +26,7 @@ class BillManager implements CallbackListener {
const PLAYER_REFUSED_DONATION = 4;
const ERROR_WHILE_TRANSACTION = 5;
/**
/*
* Private Properties
*/
private $maniaControl = null;
@@ -138,4 +140,4 @@ class BillManager implements CallbackListener {
break;
}
}
}
}