close() abstract public method

Closes the socket and unsets Socket::$_resource.
abstract public close ( ) : boolean
return boolean `true` on success, `false` otherwise.
Example #1
0
 /**
  * Disconnect from socket.
  *
  * @return boolean
  */
 public function disconnect()
 {
     if ($this->_isConnected) {
         $this->_isConnected = !$this->_connection->close();
     }
     return !$this->_isConnected;
 }