Tutorial example for abstract classes and interfaces with PHP