- Added a __tostring method to the user entity

This commit is contained in:
mcndave committed 2021-03-29 20:01:01 +00:00
1 parent 55a7af6ac9
commit fed3bc7f85
1 file changed
+5
+5
View File
@@ -83,6 +83,11 @@ class User {
public bool $logged = false;
public function __toString() : string
{
return $this->fullname();
}
public function setPassword($password) : self
{
$this->password = $password;