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.
53 lines
923 B
53 lines
923 B
<?php
|
|
|
|
class Compte{
|
|
|
|
/**
|
|
* @var string Pseudo
|
|
*/
|
|
private string $pseudo;
|
|
/**
|
|
* @var string Email
|
|
*/
|
|
private string $email;
|
|
/**
|
|
* @var string Mot de passe
|
|
*/
|
|
private string $motDePasse;
|
|
|
|
/**
|
|
* @param string $pseudo
|
|
* @param string $email
|
|
* @param string $motDePasse
|
|
*/
|
|
public function __construct(string $pseudo, string $email, string $motDePasse)
|
|
{
|
|
$this->pseudo = $pseudo;
|
|
$this->email = $email;
|
|
$this->motDePasse = $motDePasse;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getPseudonyme() : string
|
|
{
|
|
return $this->pseudo;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEmail() : string
|
|
{
|
|
return $this->email;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getMotDePasse(): string
|
|
{
|
|
return $this->motDePasse;
|
|
}
|
|
} |