[TASK] Made all constuctors and destructors public.
[TASK] Added some DocComments for the IrcClient.
This commit is contained in:
@@ -87,7 +87,7 @@ class Connection_ConnectionHandler {
|
||||
* @param $linebreak
|
||||
* @return void
|
||||
*/
|
||||
function __construct($socket, $id, $group = "", $protocol = "") {
|
||||
public function __construct($socket, $id, $group = "", $protocol = "") {
|
||||
$this->buffer_incoming = new Misc_Buffer();
|
||||
$this->buffer_outgoing = new Misc_Buffer();
|
||||
$this->socketHandler = new Socket_SocketHandler($socket);
|
||||
@@ -105,7 +105,7 @@ class Connection_ConnectionHandler {
|
||||
* Calls parent destructor.
|
||||
* @return void
|
||||
*/
|
||||
function __destruct() {
|
||||
public function __destruct() {
|
||||
unset($this->socketHandler);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class Connection_ConnectionPool {
|
||||
* Creates an Instance of SocketPool
|
||||
* @return void
|
||||
*/
|
||||
function __construct() {
|
||||
public function __construct() {
|
||||
$this->connectionHandlers = array();
|
||||
$this->socketPool = new Socket_SocketPool();
|
||||
$this->nextID = 1;
|
||||
@@ -38,7 +38,7 @@ class Connection_ConnectionPool {
|
||||
* Destroys the SocketPool
|
||||
* @return void
|
||||
*/
|
||||
function __destruct() {
|
||||
public function __destruct() {
|
||||
unset($this->socketPool);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user