Tutorial example of using abstract classes and interfaces with PHP