Yet more improvements to php class snippet

I have trouble completing thoughts