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
/
Contact.php
86 lines (77 loc) · 1.49 KB
/
Contact.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
85
86
<?php
/**
* This object represents a phone contact.
*
* Required params: $phone_number, $first_name.
* Optional params: $last_name, $user_id.
* User: valizada
* Date: 26/08/15
* Time: 14:21
*/
class Contact
{
private $phone_number;
private $first_name;
private $last_name;
private $user_id;
/**
* @return String
* Contact's phone number
*/
public function getPhoneNumber()
{
return $this->phone_number;
}
/**
* @param mixed $phone_number
*/
public function setPhoneNumber($phone_number)
{
$this->phone_number = $phone_number;
}
/**
* @return String
* Contact's first name
*/
public function getFirstName()
{
return $this->first_name;
}
/**
* @param mixed $first_name
*/
public function setFirstName($first_name)
{
$this->first_name = $first_name;
}
/**
* @return String
* Optional. Contact's last name
*/
public function getLastName()
{
return $this->last_name;
}
/**
* @param mixed $last_name
*/
public function setLastName($last_name)
{
$this->last_name = $last_name;
}
/**
* @return Integer
* Optional. Contact's user identifier in Telegram
*/
public function getUserId()
{
return $this->user_id;
}
/**
* @param mixed $user_id
*/
public function setUserId($user_id)
{
$this->user_id = $user_id;
}
}