예제 #1
0
 /**
  * @return $this
  */
 public function disconnect()
 {
     if (null !== $this->socket) {
         $this->socket->close();
         $this->socket = null;
     }
     return $this;
 }
 /**
  * @return $this
  */
 protected function disconnect()
 {
     // socket set?
     if ($this->socket) {
         $this->socket->close();
     }
     return $this;
 }