PHP example of inheritance and interface