group_id = $group_id; } public function has_group_id() : bool { return $this->group_id > -1; } public function get_group_id() : int { return $this->group_id; } //Set and get user membership level public function set_level(int $level){ $this->level = $level; } public function has_level() : bool { return $this->level > -1; } 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; } }