oui
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7a551b1e65
commit
d434567899
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
use Model\Athlete;
|
||||
namespace Model;
|
||||
|
||||
class Coach extends Athlete {
|
||||
|
||||
class Coach extends Role {
|
||||
// Attributs spécifiques au Coach si nécessaire
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
namespace Model;
|
||||
use Model\Role;
|
||||
|
||||
// Data Class
|
||||
|
||||
class User{
|
||||
public function __construct(
|
||||
private int $id,
|
||||
private string $nom,
|
||||
private string $prenom,
|
||||
private string $email,
|
||||
private string $motDePasse,
|
||||
private string $sexe,
|
||||
private float $taille,
|
||||
private float $poids,
|
||||
private \DateTime $dateNaissance,
|
||||
private Role $role,
|
||||
) {}
|
||||
|
||||
public function isValidPassword(string $password){
|
||||
// not implemented
|
||||
return true;
|
||||
}
|
||||
public function __toString() {
|
||||
return "Athlete [ID: {$this->id}, Nom: {$this->nom}, Prénom: {$this->prenom}, Email: {$this->email}]";
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
namespace Model;
|
||||
|
||||
interface IUserRepository extends IGenericRepository {
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in new issue