29 lines
537 B
PHP
29 lines
537 B
PHP
<?php
|
|
class User
|
|
{
|
|
private $username;
|
|
private $password;
|
|
|
|
public function __construct($username, $password)
|
|
{
|
|
$this->username = $username;
|
|
$this->password = $password;
|
|
}
|
|
|
|
public function getUsername() {
|
|
return $this->username;
|
|
}
|
|
|
|
public function getPassword() {
|
|
return $this->password;
|
|
}
|
|
|
|
public function saetUsername($username) {
|
|
$this->username = $username;
|
|
}
|
|
|
|
public function setPassword($password) {
|
|
$this->password = $password;
|
|
}
|
|
}
|