edit file to php class