Add PHPDoc information for API parsing.

This commit is contained in:
Michael Yoo 2013-11-25 20:28:19 +10:30
parent 249e83db91
commit b8763a7a3f
2 changed files with 11 additions and 2 deletions

View File

@ -29,7 +29,11 @@ class ServerAPI{
private $asyncCnt = 0;
private $rcon;
private $query;
/**
* @return PocketMinecraftServer
*/
public static function request(){
return self::$serverRequest;
}

View File

@ -21,8 +21,13 @@
class PocketMinecraftServer{
public $tCnt;
public $serverID, $interface, $database, $version, $invisible, $api, $tickMeasure, $preparedSQL, $seed, $gamemode, $name, $maxClients, $clients, $eidCnt, $custom, $description, $motd, $port, $saveEnabled;
public $serverID, $interface, $database, $version, $invisible, $tickMeasure, $preparedSQL, $seed, $gamemode, $name, $maxClients, $clients, $eidCnt, $custom, $description, $motd, $port, $saveEnabled;
private $serverip, $evCnt, $handCnt, $events, $eventsID, $handlers, $serverType, $lastTick, $ticks, $memoryStats, $async = array(), $asyncID = 0;
/**
* @var ServerAPI
*/
public $api;
private function load(){
$this->version = new VersionString();