Hello,
I have a question about managing eppExtensions and extending PHP classes.
Let me explain in detail:
Among the various extensions for Nic.it, I created it-exdom-2.0, which contains the itEppInfoDomainResponse class, which extends eppInfoDomainResponse.
Now I need to enable DNSSEC. The Italian registry uses both the standard secDNS-1.1 extension and their custom it-extsecdns-1.0 extension to read additional data.
How should I go about writing the PHP classes?
I can create an itEppDnssecDomainResponse that extends itEppInfoDomainResponse, but I'll lose the information from the standard DNSSEC library. If I extend eppDnssecInfoDomainResponse, I'll lose the Italian registry-specific information.
Is there any advice for creating the extensions while maintaining the library's code style?
PHP doesn't support multiple inheritance. We could use traits, but I don't think that's the official way.
Any suggestions?
Thanks
Hello,
I have a question about managing eppExtensions and extending PHP classes.
Let me explain in detail:
Among the various extensions for Nic.it, I created it-exdom-2.0, which contains the itEppInfoDomainResponse class, which extends eppInfoDomainResponse.
Now I need to enable DNSSEC. The Italian registry uses both the standard secDNS-1.1 extension and their custom it-extsecdns-1.0 extension to read additional data.
How should I go about writing the PHP classes?
I can create an itEppDnssecDomainResponse that extends itEppInfoDomainResponse, but I'll lose the information from the standard DNSSEC library. If I extend eppDnssecInfoDomainResponse, I'll lose the Italian registry-specific information.
Is there any advice for creating the extensions while maintaining the library's code style?
PHP doesn't support multiple inheritance. We could use traits, but I don't think that's the official way.
Any suggestions?
Thanks