|
|
|
@ -47,28 +47,28 @@
|
|
|
|
|
|
|
|
|
|
public function setUsername(int $id, string $newUsername){
|
|
|
|
|
$res = $this->gateway->updateUsername($id,$newUsername);
|
|
|
|
|
$src[] = new sourceEntity($res['username']);
|
|
|
|
|
$src[] = new sourceEntity($res[0]['username']);
|
|
|
|
|
|
|
|
|
|
return $src;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setEmail(int $id, string $newEmail){
|
|
|
|
|
$res = $this->gateway->updateEmail($id,$newEmail);
|
|
|
|
|
$src[] = new sourceEntity($res['email']);
|
|
|
|
|
$src[] = new sourceEntity($res[0]['email']);
|
|
|
|
|
|
|
|
|
|
return $src;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setImg(int $id, int $newImg){
|
|
|
|
|
$res = $this->gateway->updateImg($id,$newImg);
|
|
|
|
|
$src[] = new sourceEntity($res['img']);
|
|
|
|
|
$src[] = new sourceEntity($res[0]['img']);
|
|
|
|
|
|
|
|
|
|
return $src;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setPassWd(int $id, string $newPassWd){
|
|
|
|
|
$res = $this->gateway->updatePasswd($id,$newPassWd);
|
|
|
|
|
$src[] = new sourceEntity($res['pssword']);
|
|
|
|
|
$src[] = new sourceEntity($res[0]['pssword']);
|
|
|
|
|
|
|
|
|
|
return $src;
|
|
|
|
|
}
|
|
|
|
|