added stuff in pair programming session

This commit is contained in:
StockiP
2022-04-29 16:49:07 +02:00
parent c2789efcdc
commit cefac0c252
10 changed files with 179 additions and 16 deletions

View File

@@ -6,27 +6,28 @@ class User {
public $email;
public $firstname;
public $lastname;
//public $role;
public $role;
//public $created_at;
public $street;
public $streetnumber;
public $postalcode;
public $country;
public $phone;
public $salutation;
public function __construct($user_id, $username, $password, $email, $firstname, $lastname, $role, $created_at, $street, $streetnumber, $postalcode, $country, $phone) {
$this->user_id = $user_id;
public function __construct($username, $password, $email, $phone, $salutation, $firstname, $lastname, $role, $street, $streetnumber, $postalcode, $country) {
//$this->user_id = $user_id;
$this->username = $username;
$this->password = $password;
$this->email=$email;
$this->firstname = $firstname;
$this->lastname=$lastname;
$this->role=$role;
$this->created_at=$created_at;
$this->street = $street;
$this->streetnumber=$streetnumber;
$this->postalcode=$postalcode;
$this->country = $country;
$this->phone=$phone;
$this->salutation=$salutation;
$this->firstname = $firstname;
$this->lastname = $lastname;
$this->role = $role;
$this->street = $street;
$this->streetnumber = $streetnumber;
$this->postalcode = $postalcode;
$this->country = $country;
}
}