Hackzilla\PasswordGenerator\Generator\HumanPasswordGenerator::setMinWordLength PHP Method

setMinWordLength() public method

set min word length.
public setMinWordLength ( integer $length )
$length integer
    public function setMinWordLength($length)
    {
        if (!is_int($length) || $length < 1) {
            throw new \InvalidArgumentException('Expected positive integer');
        }
        $this->setOptionValue(self::OPTION_MIN_WORD_LENGTH, $length);
        $this->setParameter(self::PARAMETER_WORD_CACHE, null);
        $this->minWordLength = null;
        $this->maxWordLength = null;
        return $this;
    }