Posted Mar 1, 2012 23:40 UTC (Thu) by apoelstra (subscriber, #75205)
Parent article: PHP 5.4.0 released
For those wondering, the difference between a trait and an interface is that a trait also defines a default implementation for its methods.
For whatever reason, most summaries of the 'trait' concept fail to mention this, and therefore it may look like traits and interfaces are identical.
You can use the magic constant __CLASS__ to get the name of the specific class you are calling from (__TRAIT__ will give you the name of the trait), and a trait can call any public method of a class that uses it.