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

setLength() public method

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