LdapTools\AttributeConverter\ConvertGroupType::fromLdap PHP Method

fromLdap() public method

public fromLdap ( $value )
    public function fromLdap($value)
    {
        $this->validateCurrentAttribute($this->getOptions()['typeMap']);
        $value = (bool) ((int) $value & (int) $this->getArrayValue($this->getOptions()['typeMap'], $this->getAttribute()));
        // Invert the value for the distribution group, as it is the absence of the security bit.
        return $this->shouldInvertValue() ? !$value : $value;
    }