Ralph Schindler: PHP Constructor Best Practices And The Prototype Pattern
Ralph Schindler has posted PHP Constructor Best Practices And The Prototype Pattern If your knowledge of constructors ends with “the place where I put my object initialization code,” read on. While this is mostly what a constructor is, the way a developer crafts their class constructor greatly impacts the initial API of a particular class/object; which ultimately affects usability and extensibility. After all, the constructor is the first impression a particular class can make. In… continue reading.