|
@@ -5,7 +5,6 @@ namespace Predis;
|
|
|
use Predis\Network\IConnectionSingle;
|
|
|
|
|
|
abstract class CommunicationException extends PredisException {
|
|
|
- // Communication errors
|
|
|
private $_connection;
|
|
|
|
|
|
public function __construct(IConnectionSingle $connection, $message = null,
|
|
@@ -15,6 +14,11 @@ abstract class CommunicationException extends PredisException {
|
|
|
parent::__construct($message, $code, $innerException);
|
|
|
}
|
|
|
|
|
|
- public function getConnection() { return $this->_connection; }
|
|
|
- public function shouldResetConnection() { return true; }
|
|
|
+ public function getConnection() {
|
|
|
+ return $this->_connection;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function shouldResetConnection() {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|