1 | <?php |
||
18 | class PurchaseResponse extends Response implements RedirectResponseInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $redirectUrl; |
||
24 | |||
25 | /** |
||
26 | * Khởi tạo đối tượng PurchaseResponse. |
||
27 | * |
||
28 | * @param \Omnipay\Common\Message\RequestInterface $request |
||
29 | * @param $data |
||
30 | * @param $redirectUrl |
||
31 | */ |
||
32 | public function __construct(RequestInterface $request, $data, $redirectUrl) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function isSuccessful(): bool |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getRedirectUrl(): string |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function isRedirect(): bool |
||
61 | } |
||
62 |