Can get and return following state of a user.

This commit is contained in:
Pierre HUBERT
2018-07-17 10:56:12 +02:00
parent 46730f2b97
commit f054107277
4 changed files with 46 additions and 3 deletions

View File

@ -19,7 +19,8 @@ class GroupMember extends BaseUniqueObjectFromUser {
//Private fields
private $group_id = 1;
private $level = -1;
private $level = -1;
private $following;
//Set and get group id
public function set_group_id(int $group_id){
@ -46,4 +47,13 @@ class GroupMember extends BaseUniqueObjectFromUser {
public function get_level() : int {
return $this->level;
}
//Set and get following status
public function set_following(bool $following){
$this->is_following = $following;
}
public function isFollowing() : bool {
return $this->is_following;
}
}