Consequences in PHP of implementing an interface through two different routes?
        Posted  
        
            by Daniel Bingham
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Daniel Bingham
        
        
        
        Published on 2010-04-19T22:46:46Z
        Indexed on 
            2010/04/19
            22:53 UTC
        
        
        Read the original article
        Hit count: 258
        
What are the consequences of implementing the same interface through two different routes in PHP, are there any?
What I mean, is something like this:
interface baseInterface {}
abstract class baseClass implements baseInterface { }
interface myInterface extends baseInterface {}
class myClass extends baseClass implements myInterface {}
In this case myClass implements baseInterface from two different parents - myInterface and baseClass.  Are there any consequences to this?  My instinct is that PHP should handle this fine, but I just want to make sure.  What exactly does PHP do in this case?  Does it just check to see that the necessary functions are implemented for the interface each time it discovers it and call it a day or does it do something more?
© Stack Overflow or respective owner