public static function fromAccountCredentials(AccountCredentials $credentials) { return new AccountUser((string) $credentials->getEmail(), $credentials->getPassword(), $credentials->getSalt(), $credentials->getAccountId()); }