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

setMaxWordLength() public method

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