-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFriendship.php
57 lines (50 loc) · 1.11 KB
/
Friendship.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
<?php
class Friendship
{
private $requester_uuid, $recipient_uuid;
private $invitation_date, $acceptation_date;
private $status;
public function __construct($requester_uuid, $recipient_uuid, $invitation_date, $acceptation_date, $status)
{
$this->requester_uuid = $requester_uuid;
$this->recipient_uuid = $recipient_uuid;
$this->invitation_date = $invitation_date;
$this->acceptation_date = $acceptation_date;
$this->status = boolval($status);
}
/**
* @return string
*/
public function getRequesterUuid()
{
return $this->requester_uuid;
}
/**
* @return string
*/
public function getRecipientUuid()
{
return $this->recipient_uuid;
}
/**
* @return string
*/
public function getInvitationDate()
{
return $this->invitation_date;
}
/**
* @return string
*/
public function getAcceptationDate()
{
return $this->acceptation_date;
}
/**
* @return bool
*/
public function isActive()
{
return $this->status;
}
}