- Added a __tostring method to the user entity
This commit is contained in:
1 parent
55a7af6ac9
commit
fed3bc7f85
1 file changed
+5
@@ -83,6 +83,11 @@ class User {
|
|||||||
|
|
||||||
public bool $logged = false;
|
public bool $logged = false;
|
||||||
|
|
||||||
|
public function __toString() : string
|
||||||
|
{
|
||||||
|
return $this->fullname();
|
||||||
|
}
|
||||||
|
|
||||||
public function setPassword($password) : self
|
public function setPassword($password) : self
|
||||||
{
|
{
|
||||||
$this->password = $password;
|
$this->password = $password;
|
||||||
|
|||||||
Reference in new issue
Block a user