src/mako/gatekeeper/repositories/user/UserRepository.php
public function setIdentifier(string $identifier): void
	{
		if(!in_array($identifier, ['email', 'username', 'id']))
		{
			throw new InvalidArgumentException(vsprintf('Invalid identifier [ %s ].', [$identifier]));
		}

		$this->identifier = $identifier;
	}
public function setIdentifier(string $identifier): void
	{
		if(!in_array($identifier, ['email', 'username', 'id']))
		{
			throw new InvalidArgumentException(vsprintf('Invalid identifier [ %s ].', [$identifier]));
		}

		$this->identifier = $identifier;
	}
public function setIdentifier ( string $ identifier ) : void { if ( ! in_array ( $ identifier , [ 'email' , 'username' , 'id' ] ) ) { throw new InvalidArgumentException ( vsprintf ( 'Invalid identifier [ %s ].' , [ $ identifier ] ) ) ; } $ this -> identifier = $ identifier ; }
Sets the user identifier.

@param  string                    $identifier User identifier
@throws \InvalidArgumentException
Sets the user identifier .