While learning PHP I read about classes and interfaces, which I am familiar with.
And traits, which I am new to. It is described as separate modules made like abstract classes but using different inheritance approach: trait may be inherited from another trait, and included in a class.
I haven't seen this feature in other common OO languages before, so the question is:
- Which role traits play in object-oriented design in PHP?