diff --git a/TP4/ex1/modele/Adherent.php b/TP4/ex1/modele/Adherent.php index f3fb2d3588e918588d8e4a6a1ed7f337b10d6216..4441f93a60b210184bf6386e48e15740c1dc377a 100644 --- a/TP4/ex1/modele/Adherent.php +++ b/TP4/ex1/modele/Adherent.php @@ -13,6 +13,26 @@ class Adherent private DateTime $dateAdhesion; private int $numCategorie; + /** + * @param string $login + * @param string $mdp + * @param string $nomAdherent + * @param string $prenomAdherent + * @param string $email + * @param DateTime $dateAdhesion + * @param int $numCategorie + */ + public function __construct(string $login, string $mdp, string $nomAdherent, string $prenomAdherent, string $email, DateTime $dateAdhesion, int $numCategorie) + { + $this->login = $login; + $this->mdp = $mdp; + $this->nomAdherent = $nomAdherent; + $this->prenomAdherent = $prenomAdherent; + $this->email = $email; + $this->dateAdhesion = $dateAdhesion; + $this->numCategorie = $numCategorie; + } + /** * @return string */ diff --git a/TP4/ex1/modele/Categorie.php b/TP4/ex1/modele/Categorie.php index 77640964fae70ad7740ef4668c99c39839dca656..cc90eab92b835a565e0cfa153aae7225cd447326 100644 --- a/TP4/ex1/modele/Categorie.php +++ b/TP4/ex1/modele/Categorie.php @@ -9,6 +9,18 @@ class Categorie private string $libelle; private int $nbLivresAutorises; + /** + * @param int $numCategorie + * @param string $libelle + * @param int $nbLivresAutorises + */ + public function __construct(int $numCategorie, string $libelle, int $nbLivresAutorises) + { + $this->numCategorie = $numCategorie; + $this->libelle = $libelle; + $this->nbLivresAutorises = $nbLivresAutorises; + } + /** * @return int */ diff --git a/TP4/ex1/modele/Genre.php b/TP4/ex1/modele/Genre.php index 947ebf34ce0f9414743c1a6d7fdd90e38d9e8cdf..2c953d485903e032e9c2d92a3c52af154d32d8ce 100644 --- a/TP4/ex1/modele/Genre.php +++ b/TP4/ex1/modele/Genre.php @@ -5,6 +5,16 @@ class Genre private int $numGenre; private string $intitule; + /** + * @param int $numGenre + * @param string $intitule + */ + public function __construct(int $numGenre, string $intitule) + { + $this->numGenre = $numGenre; + $this->intitule = $intitule; + } + /** * @return int */ diff --git a/TP4/ex1/modele/Livre.php b/TP4/ex1/modele/Livre.php index 6e0d8e0041f02ec269b73d8ea60bef2788a9756b..0cccdf3b30b20684f9ddb7f29623c10c36b9445b 100644 --- a/TP4/ex1/modele/Livre.php +++ b/TP4/ex1/modele/Livre.php @@ -7,6 +7,20 @@ class Livre private int $anneeParution; private int $numGenre; + /** + * @param int $numLivre + * @param string $titre + * @param int $anneeParution + * @param int $numGenre + */ + public function __construct(int $numLivre, string $titre, int $anneeParution, int $numGenre) + { + $this->nulLibre = $numLivre; + $this->titre = $titre; + $this->anneeParution = $anneeParution; + $this->numGenre = $numGenre; + } + /** * @return int */ diff --git a/TP4/ex1/modele/Nationalite.php b/TP4/ex1/modele/Nationalite.php index dc8063ffda3f0ffd3eb90d6f3bf1097a678e6c0a..aee6ad6413dab3ca78624c8d508dab4189f71951 100644 --- a/TP4/ex1/modele/Nationalite.php +++ b/TP4/ex1/modele/Nationalite.php @@ -6,6 +6,18 @@ class Nationalite private string $pays; private string $abrege; + /** + * @param int $numNationalite + * @param string $pays + * @param string $abrege + */ + public function __construct(int $numNationalite, string $pays, string $abrege) + { + $this->numNationalite = $numNationalite; + $this->pays = $pays; + $this->abrege = $abrege; + } + /** * @return int */