php-epp-client icon indicating copy to clipboard operation
php-epp-client copied to clipboard

Added the function getPollRes

Open sayoki opened this issue 5 years ago • 1 comments
trafficstars

Return the records inside getPollRes, used by DNS Belgium.

sayoki avatar Jun 11 '20 16:06 sayoki

Hi Sjors,

I would appreciate it if you would create 4 separate functions for the 4 separate fields that this function is returning, instead of an array.

I understand that it is convenient to return all in one array, but you have to understand the implications if one of the 4 fields is not returned by the registry - the whole function might fail.

If you return the fields in 4 separate functions, each with their own name, the users of PHP-EPP-CLIENT can decide for themselves which fields they want to retrieve and use them.

Also, please add code so that when a field does not exist a null value is returned, instead of an error message.

metaregistrar avatar Jun 15 '20 12:06 metaregistrar