PHP Class snippet was working wrong

Just fixing the PHP class snippet