cwmiller / broadworks-connector

Simple library for connecting to BroadWorks OCI-P API
MIT License
8 stars 5 forks source link

code shorthand #29

Closed TwinMist closed 5 years ago

TwinMist commented 5 years ago

Hi Not sure if this is possible, but could there be a improvement on the way you write the code ie $request = (new ServiceProviderServiceModifyAuthorizationListRequest()) ->setServiceProviderId($enterpriseid ) ->setuserServiceAuthorization([ (new UserServiceAuthorization()) ->setServiceName($service) ->setAuthorizedQuantity( (new UnboundedPositiveInt()) ->setUnlimited(true)), ]); to

$request = (new ServiceProviderServiceModifyAuthorizationListRequest()) ->setServiceProviderId($enterpriseid ) ->setUserServiceAuthorization->setServiceName($service) ->setUserServiceAuthorization->setAuthorizedQuantity>setUnlimited(true);

always great work, many thanks