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

ScVerifyResult::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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