id = $id; $this->nomPrenom = $nomPrenom; $this->adresse = $adresse; $this->codePostal = $codePostal; $this->ville = $ville; $this->courriel = $courriel; $this->versements = array(); } /** * return copie d'une personne * @param $p */ public static function copier($p) { return new Personne( $p->id, $p->nomPrenom, $p->adresse, $p->codePostal, $p->ville, $p->courriel); } /** * ajouter un versement * @param $idActivite * @param $idTarif * @param $montant * @param $tauxReduction */ public function ajouterVersement( $idActivite, $idTarif, $montant ) { $this->versements[] = new Versement( $idActivite, $idTarif, $montant ); } }