__construct() __construct(string $username, string $password, string|null $role = null, string|null $language = null) : mixed Constructor Parameters string $username User name string $password User password string|null $role User role string|null $language User language Returns mixed
setUserName() setUserName(string $userName) : void Sets the user name Parameters string $userName User name
setPassword() setPassword(string $password) : void Sets the user's password Parameters string $password User's password
setLanguage() setLanguage(string $language) : void Sets the user language Parameters string $language User language
verifyPassword() verifyPassword(string $password) : bool Verifies the password Parameters string $password Password to verify Returns bool — Is the password correct?
toIdentity() toIdentity() : \Nette\Security\IIdentity Returns user's identity Returns \Nette\Security\IIdentity — User's identity
jsonSerialize() jsonSerialize() : array<string,int|string> Returns the JSON serialized User entity Returns array — JSON serialized User entity