Prototypal inheritance in PHP