php class snippet added