k
This commit is contained in:
33
dev_mvc/controller/data/User.php
Normal file
33
dev_mvc/controller/data/User.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
class User{
|
||||
static $userArray = [];
|
||||
public $id;
|
||||
public $username;
|
||||
public $email;
|
||||
public function User($id, $username, $email, $password){
|
||||
$this->id = $id;
|
||||
$this->username = $username;
|
||||
$this->email = $email;
|
||||
$this->password = $password;
|
||||
array_push(User::$userArray, $this);
|
||||
}
|
||||
public function getId(){
|
||||
return $this->id;
|
||||
}
|
||||
public function setId($id){
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getUsername(){
|
||||
return $this->username;
|
||||
}
|
||||
public function setUsername($username){
|
||||
$this->username = $username;
|
||||
}
|
||||
public function getEmail(){
|
||||
return $this->email;
|
||||
}
|
||||
public function setEmail($email){
|
||||
$this->email = $email;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user