Implementing the Factory Pattern in PHP

Factory Patterns allow you to write code that creates an instance of a class without knowing, in advance, the class you need to instantiate. Chuck Hagenbuch demonstrates how to implement Abstract Factories in PHP.

Possibly Related posts (machine generated):

  1. Followups: Namespaces in JavaScript
  2. Design patterns for XML
  3. The State of URL Abstraction
  4. Design Patterns for Scripted Applications
  5. Web Design Patterns

More like this: , .