You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
715 B
37 lines
715 B
<?php
|
|
class User{
|
|
private int $id;
|
|
private string $login;
|
|
private string $mdp;
|
|
|
|
function __construct($id, $login, $mdp) {
|
|
$this->id = $id;
|
|
$this->login = $login;
|
|
$this->mdp = $mdp;
|
|
}
|
|
|
|
function get_login() {
|
|
return $this->login;
|
|
}
|
|
|
|
function set_login($login) {
|
|
$this->login = $login;
|
|
}
|
|
|
|
function get_mdp() {
|
|
return $this->mdp;
|
|
}
|
|
|
|
function set_mdp($mdp) {
|
|
$this->mdp = $mdp;
|
|
}
|
|
|
|
function get_id() {
|
|
return $this->id;
|
|
}
|
|
|
|
function set_id($id) {
|
|
$this->id = $id;
|
|
}
|
|
}
|
|
?>
|