PHP 5.4+ object prototyping system using traits