Tutorial example for abstraction and interfaces with PHP