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

setWordCount() public method

Set number of words in desired password(s).
public setWordCount ( integer $characterCount )
$characterCount integer
    public function setWordCount($characterCount)
    {
        if (!is_int($characterCount) || $characterCount < 1) {
            throw new \InvalidArgumentException('Expected positive integer');
        }
        $this->setOptionValue(self::OPTION_WORDS, $characterCount);
        return $this;
    }