Completed
Push — master ( 114870...d35a30 )
by Žilvinas
03:56
created

MobileCertificateResult::getCertificate()   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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
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
     */
50 1
    public function getStatus()
51
    {
52 1
        return $this->status;
53
    }
54
 
55
    /**
56
     * Sets the value of status.
57
     * @param mixed $status the status
58
     * @return void
59
     */
60 1
    public function setStatus($status)
61
    {
62 1
        $this->status = $status;
63 1
    }
64
 
65
    /**
66
     * Gets the value of name.
67
     * @return mixed
68
     */
69 1
    public function getName()
70
    {
71 1
        return $this->name;
72
    }
73
 
74
    /**
75
     * Sets the value of name.
76
     * @param mixed $name the name
77
     * @return void
78
     */
79 1
    public function setName($name)
80
    {
81 1
        $this->name = $name;
82 1
    }
83
 
84
    /**
85
     * Gets the value of surname.
86
     * @return mixed
87
     */
88 1
    public function getSurname()
89
    {
90 1
        return $this->surname;
91
    }
92
 
93
    /**
94
     * Sets the value of surname.
95
     * @param mixed $surname the surname
96
     * @return void
97
     */
98 1
    public function setSurname($surname)
99
    {
100 1
        $this->surname = $surname;
101 1
    }
102
 
103
    /**
104
     * Gets the value of code.
105
     * @return mixed
106
     */
107 1
    public function getCode()
108
    {
109 1
        return $this->code;
110
    }
111
 
112
    /**
113
     * Sets the value of code.
114
     * @param mixed $code the code
115
     * @return void
116
     */
117 1
    public function setCode($code)
118
    {
119 1
        $this->code = $code;
120 1
    }
121
 
122
    /**
123
     * Gets the value of country.
124
     * @return mixed
125
     */
126 1
    public function getCountry()
127
    {
128 1
        return $this->country;
129
    }
130
 
131
    /**
132
     * Sets the value of country.
133
     * @param mixed $country the country
134
     * @return void
135
     */
136 1
    public function setCountry($country)
137
    {
138 1
        $this->country = $country;
139 1
    }
140
 
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
     * @return void
154
     */
155 1
    public function setSigningCertificate($signingCertificate)
156
    {
157 1
        $this->signingCertificate = $signingCertificate;
158 1
    }
159
 
160
    /**
161
     * Gets the value of authenticationCertificate.
162
     * @return mixed
163
     */
164 1
    public function getAuthenticationCertificate()
165
    {
166 1
        return $this->authenticationCertificate;
167
    }
168
 
169
    /**
170
     * Sets the value of authenticationCertificate.
171
     * @param mixed $authenticationCertificate the authentication certificate
172
     * @return void
173
     */
174 1
    public function setAuthenticationCertificate($authenticationCertificate)
175
    {
176 1
        $this->authenticationCertificate = $authenticationCertificate;
177 1
    }
178
}
179