1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?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();
- }
- }
|