forked from pimax/fb-messenger-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UserProfile.php
executable file
·53 lines (43 loc) · 1.02 KB
/
UserProfile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
namespace pimax;
class UserProfile
{
protected $data = [];
public function __construct($data)
{
$this->data = $data;
}
public function getFirstName()
{
return isset($this->data['first_name']) ? $this->data['first_name'] : null;
}
public function getLastName()
{
return isset($this->data['last_name']) ? $this->data['last_name'] : null;
}
public function getPicture()
{
return isset($this->data['profile_pic']) ? $this->data['profile_pic'] : null;
}
public function getLocale()
{
return isset($this->data['locale']) ? $this->data['locale'] : null;
}
public function getTimezone()
{
return isset($this->data['timezone']) ? $this->data['timezone'] : null;
}
public function getGender()
{
return isset($this->data['gender']) ? $this->data['gender'] : null;
}
/**
* Get Data
*
* @return array
*/
public function getData()
{
return $this->data;
}
}