diff --git a/lib/Socket.php b/lib/Socket.php
index <HASH>..<HASH> 100644
--- a/lib/Socket.php
+++ b/lib/Socket.php
@@ -169,7 +169,7 @@ abstract class Socket {
      *
      * @return resource The underlying socket descriptor
      */
-    public function socket() {
+    public function resource() {
         return $this->socket;
     }
 }
Rename Socket->socket() to Socket->resource() to prevent duplicate
constructors.