Traits to add dynamic methods to PHP classes