[TASK] Made all constuctors and destructors public.
[TASK] Added some DocComments for the IrcClient.
This commit is contained in:
@@ -10,7 +10,7 @@ class Client_BotClient extends Client_AbstractClient {
|
||||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
function __construct() {
|
||||
public function __construct() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class Client_ClientManager {
|
||||
* Default constructor.
|
||||
* @return void
|
||||
*/
|
||||
function __construct() {
|
||||
public function __construct() {
|
||||
$this->connectionPool = new Connection_ConnectionPool();
|
||||
$this->clientPool = array();
|
||||
$this->registeredProtocols = array();
|
||||
@@ -55,7 +55,7 @@ class Client_ClientManager {
|
||||
* Default destructor. Closes connections before being killed.
|
||||
* @return void
|
||||
*/
|
||||
function __destruct() {
|
||||
public function __destruct() {
|
||||
unset($this->clientPool);
|
||||
unset($this->connectionPool);
|
||||
}
|
||||
|
||||
@@ -7,18 +7,41 @@
|
||||
*/
|
||||
class Client_IrcClient extends Client_AbstractClient {
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*/
|
||||
protected $got_001;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*/
|
||||
protected $joined;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*/
|
||||
protected $authed;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $nick;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $channels;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $lines;
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
* @return void
|
||||
*/
|
||||
function __construct() {
|
||||
public function __construct() {
|
||||
$this->nick = "Serena";
|
||||
$this->channels = array();
|
||||
$this->resetConnectionStatus();
|
||||
|
||||
Reference in New Issue
Block a user