protected function modifyGroupScopeBit($lastValue, $value)
{
if ($value) {
foreach ($this->getOptions()['types']['scope'] as $attribute) {
if (MBString::strtolower($attribute) == MBString::strtolower($this->getAttribute())) {
continue;
}
if ((int) $lastValue & (int) $this->getOptions()['typeMap'][$attribute]) {
$lastValue = $this->modifyBitmaskValue($lastValue, false, $attribute);
}
}
}
$lastValue = $this->modifyBitmaskValue($lastValue, $value, $this->getAttribute());
$this->setLastValue($lastValue);
}