/**
* Transform a bool value into the bitwise operator needed for the LDAP filter.
*
* @param bool $value
* @return \LdapTools\Query\Operator\BaseOperator
*/
protected function getQueryOperator($value)
{
$fb = new FilterBuilder();
$mappedValue = $this->getArrayValue($this->getOptions()['uacMap'], $this->getAttribute());
$operator = $fb->bitwiseAnd('userAccountControl', $mappedValue);
$value = $this->shouldInvertValue() ? !$value : $value;
return $value ? $operator : $fb->bNot($operator);
}