firstName} {$this->lastName}"; } public function setPassword($password) : self { $this->password = $password; return $this->hashPassword(); } public function hashPassword(? string $password = null) : self { $this->password = password_hash($password ?: $this->password, PASSWORD_DEFAULT); return $this; } public function verifyPassword(string $password) : bool { return password_verify($password, $this->password); } public function fullname() : string { return trim( ( $this->firstName ?? "" ) . " " . ( $this->lastName ?? "" ) ); } }