[TASK] Made all constuctors and destructors public.

[TASK] Added some DocComments for the IrcClient.
This commit is contained in:
Jan Philipp Timme
2010-12-18 14:42:56 +00:00
parent 03a4dfff71
commit 26036e9994
11 changed files with 39 additions and 16 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ class Client_BotClient extends Client_AbstractClient {
/**
* Default constructor.
*/
function __construct() {
public function __construct() {
}
+2 -2
View File
@@ -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);
}
+24 -1
View File
@@ -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();