1 | <?php |
||
12 | class AuthorizeResponse extends AbstractResponse |
||
13 | { |
||
14 | /** |
||
|
|||
15 | * Constructor |
||
16 | * |
||
17 | * @param RequestInterface $request |
||
18 | * @param string $data |
||
19 | */ |
||
20 | public function __construct(RequestInterface $request, $data) |
||
32 | |||
33 | /** |
||
34 | * Verifies the signature for the response. |
||
35 | * |
||
36 | * @throws InvalidResponseException if the signature doesn't match |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function verifySignature() |
||
58 | |||
59 | /** |
||
60 | * Return whether or not the response was successful |
||
61 | * |
||
62 | * @return boolean |
||
63 | */ |
||
64 | public function isSuccessful() |
||
68 | |||
69 | /** |
||
70 | * Return the response's reason code |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getCode() |
||
78 | |||
79 | /** |
||
80 | * Return the response's reason message |
||
81 | * |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getMessage() |
||
88 | |||
89 | /** |
||
90 | * Return transaction reference |
||
91 | * |
||
92 | * @return string |
||
93 | */ |
||
94 | public function getTransactionReference() |
||
98 | } |
||
99 |