@NonNull
    private static RxBlePhy fromValue(final int value) {
        for (final RxBlePhy entry : RxBlePhyImpl.BUILTIN_VALUES) {
            if (entry.getValue() == value) {
                return entry;
            }
        }
        RxBleLog.e("Encountered an unexpected PHY value=%d. Please consider making a PR to the library.", value);
        return new RxBlePhyImpl(0, value);
    }
Function used to get the PHY static object from an integer.

@param value The integer value to try to get he PHY enum value for.

@return The PHY value.
rxandroidble/src/main/java/com/polidea/rxandroidble2/internal/RxBlePhyImpl.java