Shared publicly  - 
Reduce code duplication in PHP 5.4.0 with Traits.

As of PHP 5.4.0, PHP implements a method of code reuse called Traits.

Traits is a mechanism for code reuse in single inheritance languages such as PHP. A Trait is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies.
Sylvain BENNE's profile photo
Add a comment...