refactor ClassBuilder - there is no multiple inheritance in PHP