server config model class
This commit is contained in:
36
application/core/Server/Config.php
Normal file
36
application/core/Server/Config.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace ManiaControl\Server;
|
||||
|
||||
/**
|
||||
* Model Class holding the Server Config
|
||||
*
|
||||
* @author steeffeen
|
||||
*/
|
||||
class Config {
|
||||
/*
|
||||
* Public properties
|
||||
*/
|
||||
public $id = null;
|
||||
public $host = null;
|
||||
public $port = null;
|
||||
public $login = null;
|
||||
public $pass = null;
|
||||
|
||||
/**
|
||||
* Create a new Server Config Instance
|
||||
*
|
||||
* @param string $id Config Id
|
||||
* @param string $host Server Ip
|
||||
* @param string $port Server Port
|
||||
* @param string $login XmlRpc Login
|
||||
* @param string $pass XmlRpc Password
|
||||
*/
|
||||
public function __construct($id = null, $host = null, $port = null, $login = null, $pass = null) {
|
||||
$this->id = $id;
|
||||
$this->host = $host;
|
||||
$this->port = $port;
|
||||
$this->login = $login;
|
||||
$this->pass = $pass;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user