is_connected){ return $this->id; } return false; } public function is_connected() { return $this->is_connected; } public function get_auth_method() { if($this->is_connected){ return $this->auth_method; } return false; } public function get_groups() { return $this->groups; } public function set_db(PDO $db){ $this->$db = $db; } public function __construct(PDO $db){ $this->db = $db; } }