-
Notifications
You must be signed in to change notification settings - Fork 1
/
User.class.php
63 lines (52 loc) · 1.25 KB
/
User.class.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
<?php
class User
{
private $username;
private $password;
private $accessToken;
private $accessTokenSecret;
public function __construct($username = '',
$password = '',
$accessToken = '',
$accessTokenSecret = '')
{
$this->username = trim($username);
$this->password = trim($password);
$this->accessToken = trim($accessToken);
$this->accessTokenSecret = trim($accessTokenSecret);
}
public function getUsername()
{
return $this->username;
}
public function getPassword()
{
return $this->password;
}
public function setUsername($username)
{
$this->username = trim($username);
return $this;
}
public function setPassword($password)
{
$this->password = trim($password);
return $this;
}
public function getAccessToken()
{
return $this->accessToken;
}
public function getAccessTokenSecret()
{
return $this->accessTokenSecret;
}
public function setAccessToken($accessToken)
{
$this->accessToken = trim($accessToken);
}
public function setAccessTokenSecret($accessTokenSecret)
{
$this->accessTokenSecret = trim($accessTokenSecret);
}
}