12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace Predis;
- class ResponseError implements ResponseErrorInterface
- {
- private $message;
-
- public function __construct($message)
- {
- $this->message = $message;
- }
-
- public function getMessage()
- {
- return $this->message;
- }
-
- public function getErrorType()
- {
- list($errorType, ) = explode(' ', $this->getMessage(), 2);
- return $errorType;
- }
-
- public function __toString()
- {
- return $this->getMessage();
- }
- }
|