Understanding and Applying Polymorphism in PHP