interface PasswordGeneratorInterface (View source)

Interface for generating passwords.

Methods

string
generate(int $length = 10)

Generates a password.

Details

string generate(int $length = 10)

Generates a password.

Parameters

int $length

(optional) The length of the password.

Return Value

string

The password.