Optimized get friends list function

This commit is contained in:
Pierre
2018-03-05 19:04:21 +01:00
parent 7df905a988
commit 4bf4218b1d
3 changed files with 40 additions and 3 deletions

View File

@ -12,6 +12,7 @@ class Friend {
private $accepted;
private $following;
private $last_activity_time;
private $can_post_texts;
//Set and get friend ID
public function setFriendID(int $id){
@ -44,4 +45,12 @@ class Friend {
public function getLastActivityTime() : int {
return $this->last_activity_time;
}
//Set and get the post creation authorization status
public function setCanPostTexts(bool $can_post_texts){
$this->can_post_texts = $can_post_texts;
}
public function canPostTexts() : bool {
return $this->can_post_texts;
}
}