WebServ/www/public/M2/09/User.php

29 lines
537 B
PHP
Raw Normal View History

2024-08-26 12:17:08 +00:00
<?php
2024-08-30 13:43:26 +00:00
class User
{
2024-08-26 12:17:08 +00:00
private $username;
private $password;
2024-08-30 13:43:26 +00:00
public function __construct($username, $password)
{
2024-08-26 12:17:08 +00:00
$this->username = $username;
$this->password = $password;
}
public function getUsername() {
return $this->username;
}
public function getPassword() {
return $this->password;
}
2024-08-30 13:43:26 +00:00
public function saetUsername($username) {
$this->username = $username;
}
2024-08-26 12:17:08 +00:00
public function setPassword($password) {
$this->password = $password;
}
2024-08-30 13:43:26 +00:00
}