Skip to content

Multiple inheritance and eppExtensions #431

Description

@bessone

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions