|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
|
|
4
|
|
|
namespace Isign\Login; |
|
5
|
|
|
|
|
6
|
|
|
use Isign\StatusResultInterface; |
|
7
|
|
|
|
|
8
|
|
|
class ScVerifyResult implements StatusResultInterface |
|
9
|
|
|
{ |
|
10
|
|
|
/** @var string */ |
|
11
|
|
|
private $status; |
|
12
|
|
|
|
|
13
|
|
|
/** @var string */ |
|
14
|
|
|
private $name; |
|
15
|
|
|
|
|
16
|
1 |
|
/** @var string */ |
|
17
|
|
|
private $surname; |
|
18
|
|
|
|
|
19
|
|
|
/** @var string */ |
|
20
|
1 |
|
private $code; |
|
21
|
|
|
|
|
22
|
|
|
/** @var string email not always available */ |
|
23
|
1 |
|
private $email; |
|
24
|
|
|
|
|
25
|
1 |
|
/** @var string */ |
|
26
|
|
|
private $country; |
|
27
|
|
|
|
|
28
|
|
|
/** |
|
29
|
|
|
* Fields expected in response |
|
30
|
|
|
* @return array |
|
31
|
|
|
*/ |
|
32
|
|
|
public function getFields() |
|
33
|
|
|
{ |
|
34
|
|
|
return [ |
|
35
|
1 |
|
'status', |
|
36
|
|
|
'name', |
|
37
|
1 |
|
'surname', |
|
38
|
1 |
|
'code', |
|
39
|
|
|
'email', |
|
40
|
|
|
'country', |
|
41
|
|
|
]; |
|
42
|
|
|
} |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* Gets the value of status. |
|
46
|
|
|
* @return mixed |
|
47
|
|
|
*/ |
|
48
|
|
|
public function getStatus() |
|
49
|
|
|
{ |
|
50
|
|
|
return $this->status; |
|
51
|
|
|
} |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* Sets the value of status. |
|
55
|
|
|
* @param mixed $status the status |
|
56
|
|
|
* @return void |
|
57
|
|
|
*/ |
|
58
|
|
|
public function setStatus($status) |
|
59
|
|
|
{ |
|
60
|
|
|
$this->status = $status; |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* Gets the value of name. |
|
65
|
|
|
* @return mixed |
|
66
|
|
|
*/ |
|
67
|
|
|
public function getName() |
|
68
|
|
|
{ |
|
69
|
|
|
return $this->name; |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* Sets the value of name. |
|
74
|
|
|
* @param mixed $name the name |
|
75
|
|
|
* @return void |
|
76
|
|
|
*/ |
|
77
|
|
|
public function setName($name) |
|
78
|
|
|
{ |
|
79
|
|
|
$this->name = $name; |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* Gets the value of surname. |
|
84
|
|
|
* @return mixed |
|
85
|
|
|
*/ |
|
86
|
|
|
public function getSurname() |
|
87
|
|
|
{ |
|
88
|
|
|
return $this->surname; |
|
89
|
|
|
} |
|
90
|
|
|
|
|
91
|
|
|
/** |
|
92
|
|
|
* Sets the value of surname. |
|
93
|
|
|
* @param mixed $surname the surname |
|
94
|
|
|
* @return void |
|
95
|
|
|
*/ |
|
96
|
|
|
public function setSurname($surname) |
|
97
|
|
|
{ |
|
98
|
|
|
$this->surname = $surname; |
|
99
|
|
|
} |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* Gets the value of code. |
|
103
|
|
|
* @return mixed |
|
104
|
|
|
*/ |
|
105
|
|
|
public function getCode() |
|
106
|
|
|
{ |
|
107
|
|
|
return $this->code; |
|
108
|
|
|
} |
|
109
|
|
|
|
|
110
|
|
|
/** |
|
111
|
|
|
* Sets the value of code. |
|
112
|
|
|
* @param mixed $code the code |
|
113
|
|
|
* @return void |
|
114
|
|
|
*/ |
|
115
|
|
|
public function setCode($code) |
|
116
|
|
|
{ |
|
117
|
|
|
$this->code = $code; |
|
118
|
|
|
} |
|
119
|
|
|
|
|
120
|
|
|
/** |
|
121
|
|
|
* Gets the value of email. |
|
122
|
|
|
* @return mixed |
|
123
|
|
|
*/ |
|
124
|
|
|
public function getEmail() |
|
125
|
|
|
{ |
|
126
|
|
|
return $this->email; |
|
127
|
|
|
} |
|
128
|
|
|
|
|
129
|
|
|
/** |
|
130
|
|
|
* Sets the value of email. |
|
131
|
|
|
* @param mixed $email the email |
|
132
|
|
|
* @return void |
|
133
|
|
|
*/ |
|
134
|
|
|
public function setEmail($email) |
|
135
|
|
|
{ |
|
136
|
|
|
$this->email = $email; |
|
137
|
|
|
} |
|
138
|
|
|
|
|
139
|
|
|
/** |
|
140
|
|
|
* Gets the value of country. |
|
141
|
|
|
* @return mixed |
|
142
|
|
|
*/ |
|
143
|
|
|
public function getCountry() |
|
144
|
|
|
{ |
|
145
|
|
|
return $this->country; |
|
146
|
|
|
} |
|
147
|
|
|
|
|
148
|
|
|
/** |
|
149
|
|
|
* Sets the value of country. |
|
150
|
|
|
* @param mixed $country the country |
|
151
|
|
|
* @return void |
|
152
|
|
|
*/ |
|
153
|
|
|
public function setCountry($country) |
|
154
|
|
|
{ |
|
155
|
|
|
$this->country = $country; |
|
156
|
|
|
} |
|
157
|
|
|
} |
|
158
|
|
|
|