Passed
Push — master ( 1dc6df...304443 )
by
unknown
02:07
created

User::getKYCLevel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Created by Carl Owens ([email protected])
4
 * Company: PartFire Ltd (www.partfire.co.uk)
5
 * Copyright © 2016 PartFire Ltd. All rights reserved.
6
 *
7
 * User:    Carl Owens
8
 * Date:    27/11/2016
9
 * Time:    20:47
10
 * File:    User.php
11
 **/
12
13
namespace PartFire\MangoPayBundle\Models\DTOs;
14
15
class User
16
{
17
    protected $personType = 'NATURAL';
18
19
    protected $firstName;
20
21
    protected $lastName;
22
23
    protected $birthday;
24
25
    protected $nationality;
26
27
    protected $countryOfResidence;
28
29
    protected $email;
30
31
    protected $id;
32
33
    protected $KYCLevel;
34
35
    protected $tag;
36
37
    /**
38
     * @return mixed
39
     */
40
    public function getPersonType()
41
    {
42
        return $this->personType;
43
    }
44
45
    /**
46
     * @param mixed $personType
47
     */
48
    public function setPersonType($personType)
49
    {
50
        $this->personType = $personType;
51
    }
52
53
    /**
54
     * @return mixed
55
     */
56
    public function getFirstName()
57
    {
58
        return $this->firstName;
59
    }
60
61
    /**
62
     * @param mixed $firstName
63
     */
64
    public function setFirstName($firstName)
65
    {
66
        $this->firstName = $firstName;
67
    }
68
69
    /**
70
     * @return mixed
71
     */
72
    public function getLastName()
73
    {
74
        return $this->lastName;
75
    }
76
77
    /**
78
     * @param mixed $lastName
79
     */
80
    public function setLastName($lastName)
81
    {
82
        $this->lastName = $lastName;
83
    }
84
85
    /**
86
     * @return mixed
87
     */
88
    public function getBirthday()
89
    {
90
        return $this->birthday;
91
    }
92
93
    /**
94
     * @param mixed $birthday
95
     */
96
    public function setBirthday(\DateTime $birthday)
97
    {
98
        $this->birthday = $birthday;
99
    }
100
101
    /**
102
     * @return mixed
103
     */
104
    public function getNationality()
105
    {
106
        return $this->nationality;
107
    }
108
109
    /**
110
     * @param mixed $nationality
111
     */
112
    public function setNationality($nationality)
113
    {
114
        $this->nationality = $nationality;
115
    }
116
117
    /**
118
     * @return mixed
119
     */
120
    public function getCountryOfResidence()
121
    {
122
        return $this->countryOfResidence;
123
    }
124
125
    /**
126
     * @param mixed $countryOfResidence
127
     */
128
    public function setCountryOfResidence($countryOfResidence)
129
    {
130
        $this->countryOfResidence = $countryOfResidence;
131
    }
132
133
    /**
134
     * @return mixed
135
     */
136
    public function getEmail()
137
    {
138
        return $this->email;
139
    }
140
141
    /**
142
     * @param mixed $email
143
     */
144
    public function setEmail($email)
145
    {
146
        $this->email = $email;
147
    }
148
149
    /**
150
     * @return mixed
151
     */
152
    public function getId()
153
    {
154
        return $this->id;
155
    }
156
157
    /**
158
     * @param mixed $id
159
     */
160
    public function setId($id)
161
    {
162
        $this->id = $id;
163
    }
164
165
    /**
166
     * @return mixed
167
     */
168
    public function getKYCLevel()
169
    {
170
        return $this->KYCLevel;
171
    }
172
173
    /**
174
     * @param mixed $KYCLevel
175
     */
176
    public function setKYCLevel($KYCLevel)
177
    {
178
        $this->KYCLevel = $KYCLevel;
179
    }
180
181
    /**
182
     * @return mixed
183
     */
184
    public function getTag()
185
    {
186
        return $this->tag;
187
    }
188
189
    /**
190
     * @param mixed $tag
191
     */
192
    public function setTag($tag)
193
    {
194
        $this->tag = $tag;
195
    }
196
197
    /**
198
     * @param $timestamp
199
     */
200
    public function setBirthdayUnixTimestamp($timestamp)
201
    {
202
        $dateTime = \DateTime::createFromFormat('U', $timestamp);
203
        if ($dateTime instanceof \DateTime)
204
            $this->setBirthday($dateTime);
205
    }
206
207
    /**
208
     * @return mixed
209
     */
210
    public function getBirthdayUnixTimestamp()
211
    {
212
        return (int) $this->getBirthday()->format('U');
213
    }
214
}
215