public function generatePasswords($count = 1)
{
if (!is_int($count)) {
throw new \InvalidArgumentException('Expected integer');
} elseif ($count < 0) {
throw new \InvalidArgumentException('Expected positive integer');
}
$passwords = array();
for ($i = 0; $i < $count; ++$i) {
$passwords[] = $this->generatePassword();
}
return $passwords;
}