first commit
This commit is contained in:
26
app/Entity/user.php
Normal file
26
app/Entity/user.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace Blog\Entity;
|
||||
|
||||
class User {
|
||||
private $id;
|
||||
private $username;
|
||||
private $password;
|
||||
|
||||
public function __construct($id, $username, $password) {
|
||||
$this->id = $id;
|
||||
$this->username = $username;
|
||||
$this->password = $password;
|
||||
}
|
||||
|
||||
public function getId() {
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getUsername() {
|
||||
return $this->username;
|
||||
}
|
||||
|
||||
public function getPassword() {
|
||||
return $this->password;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user