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.
SAE_2A_FA-Reseau_ALICA/php/metier/Alumni.php

74 lines
1.1 KiB

<?php
enum Role
{
case Admin;
case Moderateur;
case Utilisateur;
}
class Alumni{
/**
* @var int Identifiant
*/
private int $id;
/**
* @var string Email
*/
private string $email;
/**
* @var string Mot de passe
*/
private string $motDePasse;
/**
* @var Role Role
*/
private Role $role;
/**
* @param int $id
* @param string $email
* @param string $motDePasse
* @param Role $role
*/
public function __construct(int $id, string $email, string $motDePasse, Role $role)
{
$this->id = $id;
$this->email = $email;
$this->motDePasse = $motDePasse;
$this->role = $role;
}
/**
* @return string
*/
public function getId() : string
{
return $this->id;
}
/**
* @return string
*/
public function getEmail() : string
{
return $this->email;
}
/**
* @return string
*/
public function getMotDePasse(): string
{
return $this->motDePasse;
}
public function getRole(): Role
{
return $this->role;
}
}