[TASK] Made all constuctors and destructors public.

[TASK] Added some DocComments for the IrcClient.
This commit is contained in:
Jan Philipp Timme committed 2010-12-18 14:42:56 +00:00
1 parent 03a4dfff71
commit 26036e9994
11 files changed
+39 -16

No files matched your search

+2 -2
View File
@@ -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();
}
+2 -2
View File
@@ -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);
}