public static function configBit(int $flags, int $mask, bool $condition): int
    {
        return $condition
            ? static::setBit($flags, $mask)
            : static::clearBit($flags, $mask);
    }
public static function configBit(int $flags, int $mask, bool $condition): int
    {
        return $condition
            ? static::setBit($flags, $mask)
            : static::clearBit($flags, $mask);
    }
public static function configBit ( int $ flags , int $ mask , bool $ condition ) : int { return $ condition ? static :: setBit ( $ flags , $ mask ) : static :: clearBit ( $ flags , $ mask ) ; }
Set the bit.

@param int  $flags     the flags
@param int  $mask      the mask
@param bool $condition the condition

@return int
Set the bit .