1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
<?php
class Utilisateur{
private $_nom;
private $_prenom;
private $_adresse;
private $_civilite;
private $_mail;
private $_numTel;
private $_ticSEM;
private $_ticWE;
private $_parcours;
private $_annulation;
private $_invitation;
private $_argent;
private $_role;
public function __construct($_nom, $_prenom, $_adresse, $_civilite, $_mail, $_numTel, $_ticSEM, $_ticWE, $_parcours, $_annulation, $_invitation, $_argent, $_role){
$this->_nom = $_nom;
$this->_prenom = $_prenom;
$this->_adresse = $_adresse;
$this->_civilite = $_civilite;
$this->_mail = $_mail;
$this->_numTel = $_numTel;
$this->_ticSEM = $_ticSEM;
$this->_ticWE = $_ticWE;
$this->_parcours = $_parcours;
$this->_annulation = $_annulation;
$this->_invitation = $_invitation;
$this->_argent = $_argent;
$this->_role = $_role;
}
public function getNomComplet(){
if($this->_civilite == 'M'){
return "Mr." + $this->_nom + " " + $this->_prenom + " | " + $this->_role;
} else {
return "Mr." + $this->_nom + " " + $this->_prenom + " | " + $this->_role;
}
}
public function ajouterTicSEM($_quantite){
$this->_ticSEM+=$_quantite;
}
public function ajouterTicWE($_quantite){
$this->_ticSEM+=$_quantite;
}
public function setNom($_nom){
$this->_nom=$_nom;
}
public function getNom(){
return $this->_nom;
}
public function setPrenom($_prenom){
$this->_prenom=$_prenom;
}
public function getPrenom(){
return $this->_prenom;
}
public function setAdresse($_adresse){
$this->_adresse=$_adresse;
}
public function getAdresse(){
return $this->_adresse;
}
public function setEmail($_email){
$this->_mail=$_email;
}
public function getNumTel()
{
return $this->_numTel;
}
public function getTicSEM()
{
return $this->_ticSEM;
}
public function getTicWE()
{
return $this->_ticWE;
}
public function getParcours()
{
return $this->_parcours;
}
public function getAnnulation()
{
return $this->_annulation;
}
public function getInvitation()
{
return $this->_invitation;
}
public function getArgent()
{
return $this->_argent;
}
public function setNumTel($_numTel)
{
$this->_numTel = $_numTel;
}
public function setTicSEM($_ticSEM)
{
$this->_ticSEM = $_ticSEM;
}
public function setTicWE($_ticWE)
{
$this->_ticWE = $_ticWE;
}
public function setParcours($_parcours)
{
$this->_parcours = $_parcours;
}
public function setAnnulation($_annulation)
{
$this->_annulation = $_annulation;
}
public function setInvitation($_invitation)
{
$this->_invitation = $_invitation;
}
public function setArgent($_argent)
{
$this->_argent = $_argent;
}
}
?> |
Partager