public function reconfigure(array $options = []) : self
{
foreach ($options as $opt => $val) {
switch ($opt) {
case 'formIndex':
case 'formToken':
case 'sessionIndex':
case 'recycle_after':
case 'hmac_ip':
case 'expire_old':
$this->{${$opt}} = $val;
break;
case 'hashAlgo':
if (\in_array($val, \hash_algos())) {
$this->hashAlgo = $val;
}
break;
}
}
return $this;
}