| 1 | <?php |
||
| 17 | class Dynamark3Response |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $responseText; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | protected $errorCode; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $responseText |
||
| 31 | * @param int $errorCode |
||
| 32 | */ |
||
| 33 | 6 | public function __construct($responseText, $errorCode = null) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $responseText |
||
| 41 | */ |
||
| 42 | 6 | public function setResponseText($responseText) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param int $errorCode |
||
| 49 | */ |
||
| 50 | 6 | public function setErrorCode($errorCode) |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 4 | public function getResponseText() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @return bool |
||
| 65 | */ |
||
| 66 | 6 | public function isError() |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @return int |
||
| 73 | */ |
||
| 74 | 4 | public function getErrorCode() |
|
| 78 | } |
||
| 79 |