| 1 | <?php |
||
| 19 | class Dynamark3Response implements Dynamark3ResponseInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $responseText; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | protected $errorCode; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $responseText |
||
| 33 | * @param int $errorCode |
||
| 34 | */ |
||
| 35 | 8 | public function __construct($responseText, $errorCode = null) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $responseText |
||
| 43 | */ |
||
| 44 | 8 | public function setResponseText($responseText) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @param int $errorCode |
||
| 51 | */ |
||
| 52 | 8 | public function setErrorCode($errorCode) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | 5 | public function getResponseText() |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return bool |
||
| 67 | */ |
||
| 68 | 8 | public function isError() |
|
| 72 | |||
| 73 | /** |
||
| 74 | * @return int |
||
| 75 | */ |
||
| 76 | 5 | public function getErrorCode() |
|
| 80 | } |
||
| 81 |