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.
108 lines
2.1 KiB
108 lines
2.1 KiB
<?php
|
|
|
|
class Utilisateur
|
|
{
|
|
private string $email;
|
|
private string $pseudo;
|
|
private string $mdp;
|
|
private bool $estAdmin;
|
|
|
|
/**
|
|
* @param string $email
|
|
* @param string $pseudo
|
|
* @param string $mdp
|
|
* @param bool $estAdmin
|
|
*/
|
|
<<<<<<< HEAD
|
|
public function __construct(string $email, string $pseudo, string $mdp, bool $estAdmin)
|
|
=======
|
|
public function __construct(string $email, string $pseudo, string $mdp ,bool $estAdmin)
|
|
>>>>>>> d82ece50 (Changement de joueur et admin)
|
|
{
|
|
$this->email = $email;
|
|
$this->pseudo = $pseudo;
|
|
$this->mdp = $mdp;
|
|
<<<<<<< HEAD
|
|
$this->estAdmin = $estAdmin;
|
|
=======
|
|
$this->estAdmin=$estAdmin;
|
|
>>>>>>> d82ece50 (Changement de joueur et admin)
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEmail(): string
|
|
{
|
|
return $this->email;
|
|
}
|
|
|
|
/**
|
|
* @param string $email
|
|
*/
|
|
public function setEmail(string $email): void
|
|
{
|
|
$this->email = $email;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getPseudo(): string
|
|
{
|
|
return $this->pseudo;
|
|
}
|
|
|
|
/**
|
|
* @param string $pseudo
|
|
*/
|
|
public function setPseudo(string $pseudo): void
|
|
{
|
|
$this->pseudo = $pseudo;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getMdp(): string
|
|
{
|
|
return $this->mdp;
|
|
}
|
|
|
|
/**
|
|
* @param string $mdp
|
|
*/
|
|
public function setMdp(string $mdp): void
|
|
{
|
|
$this->mdp = $mdp;
|
|
}
|
|
|
|
/**
|
|
<<<<<<< HEAD
|
|
* @return bool
|
|
=======
|
|
* @param bool $estAdmin
|
|
>>>>>>> d82ece50 (Changement de joueur et admin)
|
|
*/
|
|
public function getEstAdmin(): bool
|
|
{
|
|
return $this->estAdmin;
|
|
}
|
|
<<<<<<< HEAD
|
|
/**
|
|
* @param bool $estAdmin
|
|
*/
|
|
public function setEstAdmin(bool $estAdmin): void
|
|
{
|
|
$this->estAdmin = $estAdmin;
|
|
=======
|
|
|
|
/**
|
|
* @param bool $estAdmin
|
|
*/
|
|
public function setEstAdmin(bool $estAdmin)
|
|
{
|
|
$this->estAdmin=$estAdmin;
|
|
>>>>>>> d82ece50 (Changement de joueur et admin)
|
|
}
|
|
} |