This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
User.php
84 lines (75 loc) · 1.46 KB
/
User.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/**
* This object represents a Telegram user or bot.
* Required parameters are: $id and $first_name.
* Optionals: $last_name and $username
*
* User: valizada
* Date: 26/08/15
* Time: 09:46
*/
class User
{
private $id;
private $first_name;
private $last_name;
private $user_name;
/**
* @return
* unique identifier for this user or bot
*/
public function getId()
{
return $this->id;
}
/**
* @param
* unique identifier for this user or bot
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return User‘s or bot’s first name
*/
public function getFirstName()
{
return $this->first_name;
}
/**
* @param User ‘s or bot’s first name
*/
public function setFirstName($first_name)
{
$this->first_name = $first_name;
}
/**
* @return User‘s or bot’s last name
*/
public function getLastName()
{
return $this->last_name;
}
/**
* @param User ‘s or bot’s last name
*/
public function setLastName($last_name)
{
$this->last_name = $last_name;
}
/**
* @return User‘s or bot’s username
*/
public function getUserName()
{
return $this->user_name;
}
/**
* @param User ‘s or bot’s username
*/
public function setUserName($user_name)
{
$this->user_name = $user_name;
}
}