class PhoneResolversImpl implements PhoneResolvers {

    @Override
    public DataFetcher<Phone> updatePhoneDataFetcher() {
        return environment -> {
            long phoneId = util.getLongArg(environment, "phoneId");
            String number = util.getStringArg(environment, "number");
            String extension = util.getStringArg(environment, "extension");
            long typeId = util.getLongArg(environment, "typeId");
            boolean primary = util.getBooleanArg(environment, "primary");

            return phoneLocalService.updatePhone(
                    phoneId,
                    number,
                    extension,
                    typeId,
                    primary);
        };
    }

}