src/Authen.php
public static function setIdentifierName(string $identifier): void
    {
        if (empty($identifier)) {
            throw new InvalidArgumentException("Identifier shouldn't be empty.");
        } elseif (\in_array($identifier, ['password'])) {
            throw new InvalidArgumentException("Identifier [{$identifier}] is not allowed!");
        }

        static::$identifier = $identifier;
    }
public static function setIdentifierName(string $identifier): void
    {
        if (empty($identifier)) {
            throw new InvalidArgumentException("Identifier shouldn't be empty.");
        } elseif (\in_array($identifier, ['password'])) {
            throw new InvalidArgumentException("Identifier [{$identifier}] is not allowed!");
        }

        static::$identifier = $identifier;
    }
public static function setIdentifierName ( string $ identifier ) : void { if ( empty ( $ identifier ) ) { throw new InvalidArgumentException ( "Identifier shouldn't be empty." ) ; } elseif ( \ in_array ( $ identifier , [ 'password' ] ) ) { throw new InvalidArgumentException ( "Identifier [{$identifier}] is not allowed!" ) ; } static :: $ identifier = $ identifier ; }
Set identifier name.

@param string $identifier

@throws \InvalidArgumentException
Set identifier name .