- Added a __tostring method to the user entity

This commit is contained in:
Dave M. 2021-03-29 20:01:01 +00:00
parent 55a7af6ac9
commit fed3bc7f85
1 changed files with 5 additions and 0 deletions

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;