LdapTools\Utilities\TSProperty::nibbleControl PHP Метод

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

Based on the control, adjust the nibble accordingly.
protected nibbleControl ( string $nibble, string $control ) : string
$nibble string
$control string
Результат string
    protected function nibbleControl($nibble, $control)
    {
        // This control stays constant for the low/high nibbles, so it doesn't matter which we compare to
        if ($control == self::NIBBLE_CONTROL['X'][1]) {
            $dec = bindec($nibble);
            $dec += 9;
            $nibble = str_pad(decbin($dec), 4, '0', STR_PAD_LEFT);
        }
        return $nibble;
    }