-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass.UserAccount.php
More file actions
44 lines (38 loc) · 991 Bytes
/
class.UserAccount.php
File metadata and controls
44 lines (38 loc) · 991 Bytes
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
<?php
abstract class UserAccount{
public $username;
private $useremail;
private $password;
private $usertype;
public function __construct($username,$useremail,$password,$usertype){
$this->username = $username;
$this->useremail = $useremail;
$this->password = $password;
$this->usertype = $usertype;
}
public function setName($username){
$this->username=$username;
}
public function getName(){
return $this->username;
}
public function setEmail($useremail){
$this->useremail=$useremail;
}
public function getEmail(){
return $this->useremail;
}
public function setPassword($password){
$this->password=$password;
}
public function getPassword(){
return $this->password;
}
public function setUserType($usertype){
$this->usertype=$usertype;
}
public function getType(){
return $this->usertype=$usertype;
}
}
?>