Completed
Pull Request — master (#225)
by
unknown
07:37
created

PassportModel   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 181
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 14
lcom 0
cbo 1
dl 0
loc 181
rs 10
c 0
b 0
f 0

14 Methods

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