Traits: The Right Way

Every iteration of PHP brings more object oriented programming features to the language. In PHP 5.3, we got namespaces, a vital aspect to the current PHP landscape. As of PHP 5.4, a new feature was introduced called Traits. Traits are not a new concept; they have existed as