123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace Predis;
- use Predis\Connection\SingleConnectionInterface;
- abstract class CommunicationException extends PredisException
- {
- private $connection;
-
- public function __construct(
- SingleConnectionInterface $connection, $message = null, $code = null, \Exception $innerException = null
- ) {
- parent::__construct($message, $code, $innerException);
- $this->connection = $connection;
- }
-
- public function getConnection()
- {
- return $this->connection;
- }
-
- public function shouldResetConnection()
- {
- return true;
- }
- }
|