nouvelle version des structures de données

FossilOrigin-Name: ff5fc2aff4eab5aa2817d5b6183a5ab842bc701609fb255e97728a2a95e19c14
This commit is contained in:
engel 2022-02-10 16:05:24 +00:00
parent 2a7f5ad834
commit 341afe6a7b
9 changed files with 263 additions and 109 deletions

View file

@ -10,8 +10,8 @@ class Personne
public $id;
public $nomPrenom;
public $adresse;
public $ville;
public $codePostal;
public $ville;
public $courriel;
public $versements; // tableau des versements totaux par activité/tarif
@ -19,19 +19,31 @@ class Personne
$id,
$nomPrenom,
$adresse,
$ville,
$codePostal,
$courriel
$ville,
$courriel = ""
) {
$this->id = $id;
$this->nomPrenom = $nomPrenom;
$this->adresse = $adresse;
$this->ville = $ville;
$this->codePostal = $codePostal;
$this->ville = $ville;
$this->courriel = $courriel;
$this->versements = array();
}
public static function copier($p)
{
return new Personne(
$p->id,
$p->nomPrenom,
$p->adresse,
$p->codePostal,
$p->ville,
$p->courriel);
}
/*
* ajouter un versement pour une activité et un tarif donnés
*/