- Added a __tostring method to the user entity
This commit is contained in:
parent
55a7af6ac9
commit
fed3bc7f85
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue