1 | <?php |
||
26 | final class AuthenticateResponse extends AbstractResponse implements InitializationInterface { |
||
27 | /** |
||
28 | * @var string transaction identifier |
||
29 | */ |
||
30 | private $id = ''; |
||
31 | |||
32 | /** |
||
33 | * @var bool request processing result |
||
34 | */ |
||
35 | private $success = false; |
||
36 | |||
37 | /** |
||
38 | * @var null|CardResponse instance with safely card data |
||
39 | */ |
||
40 | private $Card = null; |
||
41 | |||
42 | /** |
||
43 | * @var string card's permanent token |
||
44 | */ |
||
45 | private $permanentToken = ''; |
||
46 | |||
47 | /** |
||
48 | * @var null|RecurringResponse instance with recurring payments data |
||
49 | */ |
||
50 | private $Recurring = null; |
||
51 | |||
52 | /** |
||
53 | * @return string transaction identifier |
||
54 | */ |
||
55 | 1 | public function getId() { |
|
58 | |||
59 | /** |
||
60 | * @return boolean request processing result |
||
61 | */ |
||
62 | 1 | public function isSuccess() { |
|
65 | |||
66 | /** |
||
67 | * @return null|CardResponse instance with safely card data |
||
68 | */ |
||
69 | 1 | public function getCard() { |
|
72 | |||
73 | /** |
||
74 | * @return string card's permanent token |
||
75 | */ |
||
76 | 1 | public function getPermanentToken() { |
|
79 | |||
80 | /** |
||
81 | * @return null|RecurringResponse instance with recurring payments data |
||
82 | */ |
||
83 | 1 | public function getRecurring() { |
|
86 | |||
87 | /** |
||
88 | * @inheritdoc |
||
89 | * @return AuthenticateResponse instance, that describes card authentication data |
||
90 | */ |
||
91 | 1 | public static function initializeByString($string) { |
|
105 | |||
106 | /** |
||
107 | * @inheritdoc |
||
108 | */ |
||
109 | 1 | public function __toString() { |
|
127 | } |
||
128 |