Hackzilla\PasswordGenerator\Generator\RequirementPasswordGenerator::generatePassword PHP Method

generatePassword() public method

Generate one password based on options.
public generatePassword ( ) : string
return string password
    public function generatePassword()
    {
        if ($this->dirtyCheck) {
            if (!$this->validLimits()) {
                throw new ImpossibleMinMaxLimitsException();
            }
            $this->dirtyCheck = false;
        }
        do {
            $password = parent::generatePassword();
        } while (!$this->validatePassword($password));
        return $password;
    }