Completed
Push — master ( 8f748c...bf8f52 )
by Anton
12s
created

PassportModel::getSex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Passport;
4
5
use Yandex\Common\Model;
6
7
/**
8
 * Class PassportModel
9
 * @package  Yandex\Passport
10
 *
11
 * @author   mrG1K <[email protected]>
12
 * @see      https://tech.yandex.ru/passport/doc/dg/reference/response-docpage/
13
 */
14
class PassportModel extends Model
15
{
16
    /**
17
     * @var string|null
18
     */
19
    protected $first_name = null;
20
    /**
21
     * @var string|null
22
     */
23
    protected $last_name = null;
24
    /**
25
     * @var string|null
26
     */
27
    protected $display_name = null;
28
    /**
29
     * @var string|null
30
     */
31
    protected $default_email = null;
32
    /**
33
     * @var string|null
34
     */
35
    protected $real_name = null;
36
    /**
37
     * @var string|null
38
     */
39
    protected $is_avatar_empty = null;
40
    /**
41
     * @var boolean|null
42
     */
43
    protected $birthday = null;
44
    /**
45
     * @var string|null
46
     */
47
    protected $default_avatar_id = null;
48
    /**
49
     * @var string|null
50
     */
51
    protected $login = null;
52
    /**
53
     * @var string|null
54
     */
55
    protected $old_social_login = null;
56
    /**
57
     * @var string|null
58
     */
59
    protected $sex = null;
60
    /**
61
     * @var integer|null
62
     */
63
    protected $id = null;
64
    /**
65
     * @var \Yandex\Common\StringCollection|null
66
     */
67
    protected $emails = null;
68
    /**
69
     * @var \Yandex\Common\StringCollection|null
70
     */
71
    protected $openid_identities = null;
72
73
    /**
74
     * @var array
75
     */
76
    protected $mappingClasses = [
77
        'emails'            => 'Yandex\Common\StringCollection',
78
        'openid_identities' => 'Yandex\Common\StringCollection'
79
    ];
80
81
    /**
82
     * @return null|string
83
     */
84 6
    public function getFirstName()
85
    {
86 6
        return $this->first_name;
87
    }
88
89
    /**
90
     * @return null|string
91
     */
92 6
    public function getLastName()
93
    {
94 6
        return $this->last_name;
95
    }
96
97
    /**
98
     * @return null|string
99
     */
100 6
    public function getDisplayName()
101
    {
102 6
        return $this->display_name;
103
    }
104
105
    /**
106
     * @return null|string
107
     */
108 6
    public function getDefaultEmail()
109
    {
110 6
        return $this->default_email;
111
    }
112
113
    /**
114
     * @return null|string
115
     */
116 6
    public function getRealName()
117
    {
118 6
        return $this->real_name;
119
    }
120
121
    /**
122
     * @return null|string
123
     */
124 6
    public function getisAvatarEmpty()
125
    {
126 6
        return $this->is_avatar_empty;
127
    }
128
129
    /**
130
     * @return bool|null
131
     */
132 6
    public function getBirthday()
133
    {
134 6
        return $this->birthday;
135
    }
136
137
    /**
138
     * @return null|string
139
     */
140 6
    public function getDefaultAvatarId()
141
    {
142 6
        return $this->default_avatar_id;
143
    }
144
145
    /**
146
     * @return null|string
147
     */
148 6
    public function getLogin()
149
    {
150 6
        return $this->login;
151
    }
152
153
    /**
154
     * @return null|string
155
     */
156 6
    public function getOldSocialLogin()
157
    {
158 6
        return $this->old_social_login;
159
    }
160
161
    /**
162
     * @return null|string
163
     */
164 6
    public function getSex()
165
    {
166 6
        return $this->sex;
167
    }
168
169
    /**
170
     * @return int|null
171
     */
172 6
    public function getId()
173
    {
174 6
        return $this->id;
175
    }
176
177
    /**
178
     * @return null|\Yandex\Common\StringCollection
179
     */
180 2
    public function getEmails()
181
    {
182 2
        return $this->emails;
183
    }
184
185
    /**
186
     * @return null|\Yandex\Common\StringCollection
187
     */
188 6
    public function getOpenidIdentities()
189
    {
190 6
        return $this->openid_identities;
191
    }
192
}
193