LdapTools\AttributeConverter\ConvertGroupType::toLdap PHP Метод

toLdap() публичный Метод

public toLdap ( $value )
    public function toLdap($value)
    {
        $this->validateCurrentAttribute($this->getOptions()['typeMap']);
        if ($this->getOperationType() == AttributeConverterInterface::TYPE_SEARCH_TO) {
            $valueToLdap = $this->getQueryOperator($value);
        } else {
            $valueToLdap = $this->modifyGroupTypeValue((bool) $value);
        }
        return $valueToLdap;
    }