| 1 | <?php |
||
| 12 | class AbstractResponse extends \Omnipay\Common\Message\AbstractResponse |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var integer |
||
| 16 | */ |
||
| 17 | protected $code; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param RequestInterface $request |
||
| 21 | * @param array $data |
||
| 22 | * @param integer $code |
||
| 23 | */ |
||
| 24 | public function __construct(RequestInterface $request, $data, $code = 200) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string|null |
||
| 33 | */ |
||
| 34 | public function getTransactionReference() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return boolean |
||
| 43 | */ |
||
| 44 | public function isSuccessful() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string|null |
||
| 51 | */ |
||
| 52 | public function getStatus() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return string|null |
||
| 61 | */ |
||
| 62 | public function getMessage() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return integer |
||
| 79 | */ |
||
| 80 | public function getCode() |
||
| 84 | } |
||
| 85 |