Tag Archives: magic methods
Trait-like Functionality for PHP

Trait-like Functionality for PHP

Eliminating repetition and encouraging code reuse are central tenets of software development. PHP’s lack of multiple inheritance means sometimes there are tough design choices to be made when similar functionality is required in separate branches of the class heirarchy. As proposed in the Horizontal Reuse for PHP RFC, traits offer a means of duplicating functionality [...]

Read full storyComments { 6 }