Modification chemin
This commit is contained in:
18
php/Classe/Hystorique.php
Normal file
18
php/Classe/Hystorique.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Hystorique
|
||||
{
|
||||
private int $id;
|
||||
private Utilisateur $utilisateur;
|
||||
private Spot $spot;
|
||||
private Pointage $pointage;
|
||||
|
||||
public function __construct(int $id, Utilisateur $utilisateur, Spot $spot, Pointage $pointage)
|
||||
{
|
||||
$this->id=$id;
|
||||
$this->utilisateur=$utilisateur;
|
||||
$this->spot=$spot;
|
||||
$this->pointage=$pointage;
|
||||
}
|
||||
}
|
17
php/Classe/Joueur.php
Normal file
17
php/Classe/Joueur.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Joueur
|
||||
{
|
||||
private int $id;
|
||||
private bool $estVivant;
|
||||
private bool $estImposteur;
|
||||
|
||||
|
||||
public function __construct(int $id,bool $estVivant,bool $estImposteur)
|
||||
{
|
||||
$this->id=$id;
|
||||
$this->estVivant=$estVivant;
|
||||
$this->estImposteur=$estImposteur;
|
||||
}
|
||||
}
|
18
php/Classe/MeteoSpot.php
Normal file
18
php/Classe/MeteoSpot.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
|
||||
class MeteoSpot
|
||||
{
|
||||
private int $id;
|
||||
private int $houle;
|
||||
private int $maree;
|
||||
private int $vent;
|
||||
|
||||
public function __construct(int $id,int $houle,int $maree,int $vent)
|
||||
{
|
||||
$this->id=$id;
|
||||
$this->houle=$houle;
|
||||
$this->mare=$maree;
|
||||
$this->vent=$vent;
|
||||
}
|
||||
}
|
17
php/Classe/MeteoVille.php
Normal file
17
php/Classe/MeteoVille.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
|
||||
class MeteoVille
|
||||
{
|
||||
private int $id;
|
||||
private int $temperature;
|
||||
private int $vent;
|
||||
|
||||
|
||||
public function __construct(int $id,int $temperature,int $vent)
|
||||
{
|
||||
$this->id=$id;
|
||||
$this->temperature=$temperature;
|
||||
$this->vent=$vent;
|
||||
}
|
||||
}
|
27
php/Classe/Pointage.php
Normal file
27
php/Classe/Pointage.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Pointage
|
||||
{
|
||||
private int $id;
|
||||
private int $nbBaigneur;
|
||||
private int $nbPratiquant;
|
||||
private int $bateauPeche;
|
||||
private int $bateauLoisir;
|
||||
private int $bateauVoile;
|
||||
private Produits $produit;
|
||||
private int $niveauDechet;
|
||||
|
||||
|
||||
public function __construct(int $id,int $nbBaigneur,int $nbPratiquant,int $bateauPeche, int $bateauLoisir,int $bateauVoile, Produits $produit,int $niveauDechet)
|
||||
{
|
||||
$this->id=$id;
|
||||
$this->nbBaigneur=$nbBaigneur;
|
||||
$this->nbPratiquant=$nbPratiquant;
|
||||
$this->bateauPeche=$bateauPeche;
|
||||
$this->bateauLoisir=$bateauLoisir;
|
||||
$this->bateauVoile=$bateauVoile;
|
||||
$this->produit=$produit;
|
||||
$this->niveauDechet=$niveauDechet;
|
||||
}
|
||||
}
|
15
php/Classe/Pollution.php
Normal file
15
php/Classe/Pollution.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Pollution
|
||||
{
|
||||
private int $id;
|
||||
private int $niveauPollution;
|
||||
private string $description;
|
||||
|
||||
function __construct(int $id,int $niveauPollution,string $description){
|
||||
$this->id = $id;
|
||||
$this->niveauPollution = $niveauPollution;
|
||||
$this->description = $description;
|
||||
}
|
||||
}
|
30
php/Classe/Produits.php
Normal file
30
php/Classe/Produits.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Produits
|
||||
{
|
||||
private int $id;
|
||||
private bool $estCremeSolaire;
|
||||
private bool $estCremeParfum;
|
||||
private bool $estCremeHydratante;
|
||||
private bool $estMaquillage;
|
||||
private bool $estEssence;
|
||||
private bool $estCigarette;
|
||||
private bool $estEngrais;
|
||||
private bool $estPeinture;
|
||||
private string $autreProduit;
|
||||
|
||||
function __construct(int $id,bool $estCremeSolaire,bool $estCremeParfum,bool $estCremeHydratante,bool $estMaquillage,
|
||||
bool $estEssence,bool $estCigarette,bool $estEngrais,bool $estPeinture,string $autreProduit){
|
||||
$this->id = $id;
|
||||
$this->estCremeSolaire = $estCremeSolaire;
|
||||
$this->estCremeParfum = $estCremeParfum;
|
||||
$this->estCremeHydratante = $estCremeHydratante;
|
||||
$this->estMaquillage = $estMaquillage;
|
||||
$this->estEssence = $estEssence;
|
||||
$this->estCigarette = $estCigarette;
|
||||
$this->estEngrais = $estEngrais;
|
||||
$this->estPeinture = $estPeinture;
|
||||
$this->autreProduit = $autreProduit;
|
||||
}
|
||||
}
|
19
php/Classe/Spot.php
Normal file
19
php/Classe/Spot.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Spot
|
||||
{
|
||||
private int $id;
|
||||
private string $nom;
|
||||
private Ville $ville;
|
||||
private MeteoSpot $meteo;
|
||||
private Pollution $pollution;
|
||||
|
||||
function __construct(int $id,string $nom,Ville $ville,Pollution $pollution,MeteoSpot $meteo){
|
||||
$this->id = $id;
|
||||
$this->nom = $nom;
|
||||
$this->ville = $ville;
|
||||
$this->pollution = $pollution;
|
||||
$this->meteo = $meteo;
|
||||
}
|
||||
}
|
39
php/Classe/Utilisateur.php
Normal file
39
php/Classe/Utilisateur.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Utilisateur
|
||||
{
|
||||
private int $id;
|
||||
private string $nom;
|
||||
private string $prenom;
|
||||
private string $pseudo;
|
||||
private string $mail;
|
||||
private string $password;
|
||||
|
||||
function __construct(int $id,string $nom,string $prenom,string $pseudo,string $mail,string $password){
|
||||
$this->id = $id;
|
||||
$this->nom = $nom;
|
||||
$this->prenom = $prenom;
|
||||
$this->pseudo = $pseudo;
|
||||
$this->mail = $mail;
|
||||
$this->password = $password;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNom(): string
|
||||
{
|
||||
return $this->nom;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $nom
|
||||
*/
|
||||
public function setNom(string $nom): void
|
||||
{
|
||||
$this->nom = $nom;
|
||||
}
|
||||
|
||||
|
||||
}
|
19
php/Classe/Ville.php
Normal file
19
php/Classe/Ville.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Ville
|
||||
{
|
||||
private int $id;
|
||||
private string $nom;
|
||||
private string $codePostal;
|
||||
private int $temperature;
|
||||
private MeteoVille $meteo;
|
||||
|
||||
function __construct(int $id,string $nom,string $codePostal,string $temperature,MeteoVille $meteo){
|
||||
$this->id = $id;
|
||||
$this->nom = $nom;
|
||||
$this->codePostal = $codePostal;
|
||||
$this->temperature = $temperature;
|
||||
$this->meteo = $meteo;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user