1 | <?php |
||
27 | final class ProcessResponse extends AbstractResponse implements InitializationInterface { |
||
28 | /** |
||
29 | * @var string transaction identifier |
||
30 | */ |
||
31 | private $id = ''; |
||
32 | |||
33 | /** |
||
34 | * @var bool request processing result |
||
35 | */ |
||
36 | private $success = false; |
||
37 | |||
38 | /** |
||
39 | * @var null|CardResponse instance with safely card data |
||
40 | */ |
||
41 | private $Card = null; |
||
42 | |||
43 | /** |
||
44 | * @var null|AccessControlServerResponse instance with ACS data |
||
45 | */ |
||
46 | private $AccessControlServer = null; |
||
47 | |||
48 | /** |
||
49 | * @var string card's permanent token |
||
50 | */ |
||
51 | private $permanentToken = ''; |
||
52 | |||
53 | /** |
||
54 | * @var null|RecurringResponse instance with recurring payments data |
||
55 | */ |
||
56 | private $Recurring = null; |
||
57 | |||
58 | /** |
||
59 | * @return string transaction identifier |
||
60 | */ |
||
61 | 1 | public function getId() { |
|
64 | |||
65 | /** |
||
66 | * @return boolean request processing result |
||
67 | */ |
||
68 | 1 | public function isSuccess() { |
|
71 | |||
72 | /** |
||
73 | * @return null|CardResponse instance with safely card data |
||
74 | */ |
||
75 | 1 | public function getCard() { |
|
78 | |||
79 | /** |
||
80 | * @return null|AccessControlServerResponse instance with ACS data |
||
81 | */ |
||
82 | 1 | public function getAccessControlServer() { |
|
85 | |||
86 | /** |
||
87 | * @return string card's permanent token |
||
88 | */ |
||
89 | 1 | public function getPermanentToken() { |
|
92 | |||
93 | /** |
||
94 | * @return null|RecurringResponse instance with recurring payments data |
||
95 | */ |
||
96 | 1 | public function getRecurring() { |
|
99 | |||
100 | /** |
||
101 | * @inheritdoc |
||
102 | * @return ProcessResponse instance, that describes payment process result |
||
103 | */ |
||
104 | 1 | public static function initializeByString($string) { |
|
121 | |||
122 | /** |
||
123 | * @inheritdoc |
||
124 | */ |
||
125 | 1 | public function __toString() { |
|
146 | } |
||
147 |