1 | <?php |
||
8 | abstract class AbstractResponse implements ResponseInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var int |
||
12 | */ |
||
13 | private $code; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $comment; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $site; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $rank; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | private $callNumber; |
||
34 | |||
35 | /** |
||
36 | * @var int |
||
37 | */ |
||
38 | private $questionNumber; |
||
39 | |||
40 | /** |
||
41 | * @var int |
||
42 | */ |
||
43 | private $transactionNumber; |
||
44 | |||
45 | /** |
||
46 | * @var string|null|false |
||
47 | */ |
||
48 | private $authorization = null; |
||
49 | |||
50 | /** |
||
51 | * @var string|null|false |
||
52 | */ |
||
53 | private $country = null; |
||
54 | |||
55 | /** |
||
56 | * @var string|null|false |
||
57 | */ |
||
58 | private $sha1 = null; |
||
59 | |||
60 | /** |
||
61 | * @var string|null|false |
||
62 | */ |
||
63 | private $cardType = null; |
||
64 | |||
65 | /** |
||
66 | * @param string[] $data |
||
67 | */ |
||
68 | public function __construct(array $data) |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | final public function getCode() |
||
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | final public function getComment() |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | final public function getSite() |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | final public function getRank() |
||
130 | |||
131 | /** |
||
132 | * {@inheritdoc} |
||
133 | */ |
||
134 | final public function getCallNumber() |
||
138 | |||
139 | /** |
||
140 | * {@inheritdoc} |
||
141 | */ |
||
142 | final public function getQuestionNumber() |
||
146 | |||
147 | /** |
||
148 | * {@inheritdoc} |
||
149 | */ |
||
150 | final public function getTransactionNumber() |
||
154 | |||
155 | /** |
||
156 | * {@inheritdoc} |
||
157 | */ |
||
158 | public function getAuthorization() |
||
162 | |||
163 | /** |
||
164 | * {@inheritdoc} |
||
165 | */ |
||
166 | public function getCountry() |
||
170 | |||
171 | /** |
||
172 | * {@inheritdoc} |
||
173 | */ |
||
174 | final public function getSha1() |
||
178 | |||
179 | /** |
||
180 | * {@inheritdoc} |
||
181 | */ |
||
182 | public function getCardType() |
||
186 | } |
||
187 |