LdapTools\AttributeConverter\ConvertGroupMembership::getBatchTypeForOperation PHP Метод

getBatchTypeForOperation() защищенный Метод

Get the batch type for the operation that was specified.
protected getBatchTypeForOperation ( ) : integer
Результат integer
    protected function getBatchTypeForOperation()
    {
        // If it was a batch reset we wouldn't be this far. So only check for a remove. If it isn't a remove then the
        // only other action it could be is an add (creating a new LDAP entry, adding to existing, or setting existing)
        if ($this->getOperationType() == AttributeConverterInterface::TYPE_MODIFY && $this->getBatch()->isTypeRemove()) {
            $batchType = Batch::TYPE['REMOVE'];
        } else {
            $batchType = Batch::TYPE['ADD'];
        }
        return $batchType;
    }