Merge remote-tracking branch 'refs/remotes/origin/php' into php

merge
php
Anthony RICHARD 2 years ago
commit e3e4a47226

@ -1,37 +0,0 @@
<?php
namespace User;
abstract class User
{
protected String $id;
protected String $mail;
protected String $nom;
protected String $prenom;
/**
* @param String $id
* @param String $mail
* @param String $nom
* @param String $prenom
*/
public function __construct(string $id, string $mail, string $nom, string $prenom)
{
$this->id = $id;
$this->mail = $mail;
$this->nom = $nom;
$this->prenom = $prenom;
}
protected function changeMail(String $newMail){
$this->mail = $newMail;
}
protected function changeNom(String $newNom){
$this->nom = $newNom;
}
protected function changePrenom(String $newPrenom){
$this->prenom = $newPrenom;
}
}
Loading…
Cancel
Save