src/LdapTools/AttributeConverter/ConvertGroupType.php
protected function modifyFlagValue($value)
    {
        $this->setDefaultLastValue('groupType', $this->getDefaultEnumValue());
        $flags = $this->getFlagFromLastValue($this->getLastValue());

        if (!in_array($this->flagName, self::SCOPES)) {
            $this->modifyBitmaskValue(
                $flags,
                $this->options['invert'] ? !$value : $value,
                $this->flagName
            );
        } else {
            $this->modifyGroupScopeBit($flags, $value);
        }

        return $flags->getValue();
    }
protected function modifyFlagValue($value)
    {
        $this->setDefaultLastValue('groupType', $this->getDefaultEnumValue());
        $flags = $this->getFlagFromLastValue($this->getLastValue());

        if (!in_array($this->flagName, self::SCOPES)) {
            $this->modifyBitmaskValue(
                $flags,
                $this->options['invert'] ? !$value : $value,
                $this->flagName
            );
        } else {
            $this->modifyGroupScopeBit($flags, $value);
        }

        return $flags->getValue();
    }
protected function modifyFlagValue ( $ value ) { $ this -> setDefaultLastValue ( 'groupType' , $ this -> getDefaultEnumValue ( ) ) ; $ flags = $ this -> getFlagFromLastValue ( $ this -> getLastValue ( ) ) ; if ( ! in_array ( $ this -> flagName , self :: SCOPES ) ) { $ this -> modifyBitmaskValue ( $ flags , $ this -> options [ 'invert' ] ? ! $ value : $ value , $ this -> flagName ) ; } else { $ this -> modifyGroupScopeBit ( $ flags , $ value ) ; } return $ flags -> getValue ( ) ; }
Given a bool value, do the needed bitwise comparison against the groupType value to either remove or
add the bit from the overall value.

@param bool $value
@return int
Given a bool value do the needed bitwise comparison against the groupType value to either remove or add the bit from the overall value .