-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUserModel.php
25 lines (24 loc) · 866 Bytes
/
UserModel.php
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
<?php
public class UserModel
{
private $id;
public function get_id() { return $this->id; }
public function set_id($id) { $this->id = $id; }
private $fname;
public function get_fname() { return $this->fname; }
public function set_fname($fname) { $this->fname = $fname; }
private $lname;
public function get_lname() { return $this->lname; }
public function set_lname($lname) { $this->lname = $lname; }
private $email;
public function get_email() { return $this->email; }
public function set_email($email) { $this->email = $email; }
public function __construct($id, $fname, $lname, $email)
{
$this->id = $id;
$this->fname = $fname;
$this->lname = $lname;
$this->email = $email;
}
}
?>