Simulate Javascript's prototype based object definition in PHP (using Traits)