Completed
Push — develop ( 056303...4fd330 )
by Žilvinas
03:11
created

MobileCertificateResult::setCountry()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
namespace Isign\Login;
3
4
use Isign\ResultInterface;
5
6
class MobileCertificateResult implements ResultInterface
7
{
8
    /** @var string response status */
9
    private $status;
10
11
    /** @var string user's first name */
12
    private $name;
13
14
    /** @var string user's last name */
15
    private $surname;
16
17
    /** @var string user's personal code */
18
    private $code;
19
20
    /** @var string user's country */
21
    private $country;
22
23
    /** @var string user's signing certificate */
24
    private $signingCertificate;
25
26
    /** @var  string user's login certificate  */
27
    private $authenticationCertificate;
28
29
    /**
30
     * Fields expected in response
31
     * @return array
32
     */
33 7
    public function getFields()
34
    {
35
        return [
36 7
            'status',
37 7
            'name',
38 7
            'surname',
39 7
            'code',
40 7
            'country',
41 7
            'signing_certificate',
42
            'authentication_certificate'
43 7
        ];
44
    }
45
 
46
    /**
47
     * Gets the value of status.
48
     * @return mixed
49 1
     */
50
    public function getStatus()
51 1
    {
52
        return $this->status;
53
    }
54
 
55
    /**
56
     * Sets the value of status.
57 1
     * @param mixed $status the status
58
     * @return void
59 1
     */
60 1
    public function setStatus($status)
61
    {
62
        $this->status = $status;
63
    }
64
 
65 1
    /**
66
     * Gets the value of name.
67 1
     * @return mixed
68
     */
69
    public function getName()
70
    {
71
        return $this->name;
72
    }
73 1
 
74
    /**
75 1
     * Sets the value of name.
76 1
     * @param mixed $name the name
77
     * @return void
78
     */
79
    public function setName($name)
80
    {
81 1
        $this->name = $name;
82
    }
83 1
 
84
    /**
85
     * Gets the value of surname.
86
     * @return mixed
87
     */
88
    public function getSurname()
89 1
    {
90
        return $this->surname;
91 1
    }
92 1
 
93
    /**
94
     * Sets the value of surname.
95
     * @param mixed $surname the surname
96
     * @return void
97 1
     */
98
    public function setSurname($surname)
99 1
    {
100
        $this->surname = $surname;
101
    }
102
 
103
    /**
104
     * Gets the value of code.
105 1
     * @return mixed
106
     */
107 1
    public function getCode()
108 1
    {
109
        return $this->code;
110
    }
111
 
112
    /**
113 1
     * Sets the value of code.
114
     * @param mixed $code the code
115 1
     * @return void
116
     */
117
    public function setCode($code)
118
    {
119
        $this->code = $code;
120
    }
121 1
 
122
    /**
123 1
     * Gets the value of country.
124 1
     * @return mixed
125
     */
126
    public function getCountry()
127
    {
128
        return $this->country;
129 1
    }
130
 
131 1
    /**
132
     * Sets the value of country.
133
     * @param mixed $country the country
134
     * @return void
135
     */
136
    public function setCountry($country)
137 1
    {
138
        $this->country = $country;
139 1
    }
140 1
 
141
    /**
142
     * Gets the value of signingCertificate.
143
     * @return mixed
144
     */
145 1
    public function getSigningCertificate()
146
    {
147 1
        return $this->signingCertificate;
148
    }
149
 
150
    /**
151
     * Sets the value of signingCertificate.
152
     * @param mixed $signingCertificate the signing certificate
153 1
     * @return void
154
     */
155 1
    public function setSigningCertificate($signingCertificate)
156 1
    {
157
        $this->signingCertificate = $signingCertificate;
158
    }
159
 
160
    /**
161
     * Gets the value of authenticationCertificate.
162
     * @return mixed
163
     */
164
    public function getAuthenticationCertificate()
165
    {
166
        return $this->authenticationCertificate;
167
    }
168
 
169
    /**
170
     * Sets the value of authenticationCertificate.
171
     * @param mixed $authenticationCertificate the authentication certificate
172
     * @return void
173
     */
174
    public function setAuthenticationCertificate($authenticationCertificate)
175
    {
176
        $this->authenticationCertificate = $authenticationCertificate;
177
    }
178
}
179