PHP - Using Traits

Introduction Traits, which were introduced in PHP 5.4, are defined as: Traits are 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…

Read this article