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.
69 lines
1.1 KiB
69 lines
1.1 KiB
<?php
|
|
|
|
class Joueur
|
|
{
|
|
private string $email;
|
|
private string $pseudo;
|
|
private string $mdp;
|
|
|
|
/**
|
|
* @param string $email
|
|
* @param string $pseudo
|
|
* @param string $mdp
|
|
*/
|
|
public function __construct(string $email, string $pseudo, string $mdp)
|
|
{
|
|
$this->email = $email;
|
|
$this->pseudo = $pseudo;
|
|
$this->mdp = $mdp;
|
|
}
|
|
|
|
/**
|
|
* @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;
|
|
}
|
|
|
|
} |