[TASK] Made all constuctors and destructors public.
[TASK] Added some DocComments for the IrcClient.
This commit is contained in:
1 parent
03a4dfff71
commit
26036e9994
11 files changed
+39
-16
No files matched your search
@@ -34,7 +34,7 @@ class Socket_SocketHandler {
|
||||
* @param ressource $socket
|
||||
* @return void
|
||||
*/
|
||||
function __construct($socket) {
|
||||
public function __construct($socket) {
|
||||
if(is_resource($socket) === FALSE) throw new Exception_SocketException("Invalid socket ressource!", 1289663108);
|
||||
$this->socket = $socket;
|
||||
$this->is_bound = FALSE;
|
||||
@@ -46,7 +46,7 @@ class Socket_SocketHandler {
|
||||
* Destructor. Closes socket.
|
||||
* @return void
|
||||
*/
|
||||
function __destruct() {
|
||||
public function __destruct() {
|
||||
$this->close();
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class Socket_SocketPool {
|
||||
* Creates sockets.
|
||||
* @return void
|
||||
*/
|
||||
function __construct() {
|
||||
public function __construct() {
|
||||
$this->sockets = array();
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class Socket_SocketPool {
|
||||
* Closes all connections.
|
||||
* @return void
|
||||
*/
|
||||
function __destruct() {
|
||||
public function __destruct() {
|
||||
unset($this->sockets);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user